Skip to content

Commit d517e76

Browse files
committed
Remove getting 'name' from the elements.csv file
The name was only ever equal to and so this was already guarenteed to be None based off the load_mml.m script
1 parent 2e16c58 commit d517e76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pytac/load_csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ def load(mode, control_system=None, directory=None, symmetry=None) -> EpicsLatti
212212
lat.set_data_source(data_source.DeviceDataSource(), pytac.LIVE)
213213
with csv_loader(mode_dir / ELEMENTS_FILENAME) as csv_reader:
214214
for item in csv_reader:
215-
name = item["name"] if item["name"] != "" else None
216-
e = element.EpicsElement(float(item["length"]), item["type"], name, lat)
215+
e = element.EpicsElement(float(item["length"]), item["type"], None, lat)
217216
e.add_to_family(item["type"])
218217
e.set_data_source(data_source.DeviceDataSource(), pytac.LIVE)
219218
lat.add_element(e)

0 commit comments

Comments
 (0)