Skip to content

Commit 0337b3f

Browse files
committed
using absolute import to get rid of ugly underscoring
1 parent 7c5b561 commit 0337b3f

File tree

13 files changed

+59
-28
lines changed

13 files changed

+59
-28
lines changed

src/compas/hpc/__init__.py

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -69,45 +69,61 @@
6969
circle_from_points_numba
7070
7171
72-
solvers
72+
core
7373
====
7474
75+
cuda
76+
----
77+
7578
.. autosummary::
7679
:toctree: generated/
7780
78-
devo_numba
7981
82+
euler
83+
-----
8084
81-
core
82-
=====
85+
.. autosummary::
86+
:toctree: generated/
87+
88+
euler.connect_to_euler
89+
euler.load_euler_module
90+
euler.recieve_file_from_euler
91+
euler.send_file_to_euler
92+
euler.send_folder_to_euler
93+
euler.show_euler_jobs
94+
euler.show_euler_quotas
95+
euler.show_euler_modules
96+
euler.show_euler_module_info
97+
euler.show_euler_resources
98+
euler.submit_job
99+
euler.kill_job
100+
euler.sync_folder_to_euler
101+
102+
numba
103+
-----
83104
84105
.. autosummary::
85106
:toctree: generated/
86107
87-
connect_to_euler
88-
load_euler_module
89-
recieve_file_from_euler
90-
send_file_to_euler
91-
send_folder_to_euler
92-
show_euler_jobs
93-
show_euler_quotas
94-
show_euler_modules
95-
show_euler_module_info
96-
show_euler_resources
97-
submit_job
98-
kill_job
99-
sync_folder_to_euler
108+
numba.numba_cross
109+
numba.numba_vdot
110+
numba.numba_dot
111+
numba.numba_length
112+
numba.numba_subtract
100113
101-
"""
102114
115+
opencl
116+
------
117+
118+
.. autosummary::
119+
:toctree: generated/
120+
121+
122+
"""
103123
from .geometry import *
104-
from .core import *
105124
from .algorithms import *
106-
from .solvers import *
107125

108126
from .geometry import __all__ as a
109-
from .core import __all__ as b
110-
from .algorithms import __all__ as c
111-
from .solvers import __all__ as d
127+
from .algorithms import __all__ as b
112128

113-
__all__ = a + b + c + d
129+
__all__ = a + b

src/compas/hpc/core/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .euler_ import *
1+
from .euler import *
22

3-
from .euler_ import __all__ as a
3+
from .euler import __all__ as a
44

55
__all__ = a
File renamed without changes.

src/compas/hpc/core/cuda_/_array.py renamed to src/compas/hpc/core/cuda/array.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
from __future__ import print_function
2+
from __future__ import absolute_import
3+
from __future__ import division
4+
15
from numpy import array
26
from numpy import float32
37
from numpy import float64

src/compas/hpc/core/cuda_/_linalg.py renamed to src/compas/hpc/core/cuda/linalg.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
from __future__ import print_function
2+
from __future__ import absolute_import
3+
from __future__ import division
4+
15
from numpy import float64
26
from numpy import ceil
37

4-
from compas.hpc.cuda._math import cuda_sqrt
5-
from compas.hpc.cuda._math import cuda_sum
8+
from compas.hpc.cuda.math import cuda_sqrt
9+
from compas.hpc.cuda.math import cuda_sum
610

711
try:
812
import pycuda

src/compas/hpc/core/cuda_/_math.py renamed to src/compas/hpc/core/cuda/math.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
from __future__ import print_function
2+
from __future__ import absolute_import
3+
from __future__ import division
4+
15
try:
26
import pycuda
37
import pycuda.autoinit

src/compas/hpc/core/cuda_/_utilities.py renamed to src/compas/hpc/core/cuda/utilities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from __future__ import print_function
2+
from __future__ import absolute_import
3+
from __future__ import division
24

35
try:
46
import pycuda
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)