Skip to content

Commit 1fc1bc0

Browse files
Juan F. Esteban MüllerJuan F. Esteban Müller
authored andcommitted
creating a Python module orbit.core that loads all C++ extension modules so that one can use all the possibilities one would expect from Python
this also fixes issue #31 because all imports will initialize MPI
1 parent 0f9aed9 commit 1fc1bc0

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

py/orbit/core/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from . import aperture
2+
from . import bunch
3+
from . import collimator
4+
from . import error_base
5+
from . import field_sources
6+
from . import fieldtracker
7+
from . import foil
8+
from . import impedances
9+
from . import linac
10+
from . import orbit_mpi
11+
from . import rfcavities
12+
from . import spacecharge
13+
from . import teapot_base
14+
from . import trackerrk4
15+
from . import orbit_utils

py/orbit/core/meson.build

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
py_sources = files([
3+
'__init__.py',
4+
])
5+
6+
python.install_sources(
7+
py_sources,
8+
subdir: 'orbit/core',
9+
# pure: true,
10+
)

py/orbit/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
subdir('bumps')
3+
subdir('core')
34
subdir('matching')
45
subdir('time_dep')
56
subdir('bunch_utils')

0 commit comments

Comments
 (0)