Skip to content

Commit 3205249

Browse files
committed
Fixed energy assuming ENG units bug causing AT lattice instability
1 parent 03d1677 commit 3205249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atip/load_sim.py

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

0 commit comments

Comments
 (0)