Skip to content

Commit a872901

Browse files
Merge pull request #132 from ken-lauer/pkg_rename
2 parents 93bbc63 + df9617e commit a872901

File tree

92 files changed

+284
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+284
-259
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ docs/api/statistics_standard.md
88
docs/api/computed_statistics.md
99

1010
# Generated computed statistics (runtime-generated)
11-
pmd_beamphysics/standards/computed_statistics.yaml
11+
beamphysics/standards/computed_statistics.yaml
1212

1313
# C extensions
1414
*.so
@@ -114,4 +114,4 @@ venv.bak/
114114
.mypy_cache/
115115
.DS_Store
116116

117-
/pmd_beamphysics/_version.py
117+
/beamphysics/_version.py

README.md

Lines changed: 2 additions & 2 deletions

beamphysics/__init__.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from .fields import FieldMesh
2+
from .particles import ParticleGroup, single_particle
3+
from .readers import particle_paths
4+
from .status import ParticleStatus
5+
from .wavefront import Wavefront, WavefrontK
6+
from .writers import pmd_init
7+
8+
try:
9+
from ._version import __version__
10+
except ImportError:
11+
__version__ = "0.0.0"
12+
13+
14+
__all__ = [
15+
"FieldMesh",
16+
"ParticleGroup",
17+
"ParticleStatus",
18+
"particle_paths",
19+
"pmd_init",
20+
"single_particle",
21+
"Wavefront",
22+
"WavefrontK",
23+
]

beamphysics/fields/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from .fieldmesh import FieldMesh
2+
3+
__all__ = [
4+
"FieldMesh",
5+
]
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from scipy.optimize import curve_fit
66
from scipy.special import ellipe, ellipk
77

8-
from pmd_beamphysics import FieldMesh
9-
from pmd_beamphysics.units import mu_0
8+
from ..fields import FieldMesh
9+
from ..units import mu_0
1010

1111

1212
def C_full(kc: float, p: float, c: float, s: float) -> float:

0 commit comments

Comments
 (0)