Skip to content

Commit fd7efba

Browse files
authored
Merge pull request #51 from T-Nicholls/main
We always want the lattice energy in eV
2 parents 18acf16 + 85714f1 commit fd7efba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = "Accelerator Toolbox Interface for Pytac"
1515
dependencies = [
1616
"numpy",
1717
"scipy",
18-
"pytac>=0.3.0",
18+
"pytac>=0.6.1",
1919
"accelerator-toolbox (>=0.2.0,<0.7.1)",
2020
"cothread",
2121
"softioc",

src/atip/load_sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def load_from_filepath(
3232
at_lattice = at.load.load_mat(
3333
at_lattice_filepath,
3434
name=pytac_lattice.name,
35-
energy=pytac_lattice.get_value("energy"),
35+
energy=pytac_lattice.get_value("energy", units=pytac.PHYS),
3636
)
3737
return load(pytac_lattice, at_lattice, callback, disable_emittance)
3838

src/atip/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def loader(mode="I04", callback=None, disable_emittance=False):
5050
at_lattice = load_at_lattice(
5151
mode,
5252
periodicity=1,
53-
energy=pytac_lattice.get_value("energy"),
53+
energy=pytac_lattice.get_value("energy", units=pytac.PHYS),
5454
)
5555
lattice = atip.load_sim.load(pytac_lattice, at_lattice, callback, disable_emittance)
5656
return lattice

0 commit comments

Comments
 (0)