Skip to content

Commit 28d40a5

Browse files
author
eir17846
committed
reply review
1 parent a091738 commit 28d40a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/daq_config_server/models/converters/_file_converter_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
"/dls_sw/i03/software/daq_configuration/lookup/BeamLineEnergy_DCM_Pitch_converter.txt": beamline_pitch_lut, # noqa
4242
"/dls_sw/i03/software/daq_configuration/lookup/BeamLineEnergy_DCM_Roll_converter.txt": beamline_roll_lut, # noqa
4343
"/dls_sw/i03/software/daq_configuration/lookup/BeamLine_Undulator_toGap.txt": undulator_energy_gap_lut, # noqa
44-
"IIDCalibrationTable.txt": i09_hu_undulator_energy_gap_lut, # noga
44+
"/dls_sw/i09-1/software/gda/workspace_git/gda-diamond.git/configurations/i09-1-shared/lookupTables/IIDCalibrationTable.txt": i09_hu_undulator_energy_gap_lut, # noqa: E501
4545
}

src/daq_config_server/models/converters/lookup_tables/_converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from ._models import GenericLookupTable
66

7-
ignore_lines_starting_with = ("Units", "ScannableUnits", "ScannableNames")
7+
IGNORE_LINES_STARTING_WITH = ("Units", "ScannableUnits", "ScannableNames")
88

99

1010
def parse_lut(contents: str, *params: tuple[str, type | None]) -> GenericLookupTable:
@@ -20,7 +20,7 @@ def parse_lut(contents: str, *params: tuple[str, type | None]) -> GenericLookupT
2020
column_names = [param[0] for param in params]
2121
types = [param[1] for param in params]
2222
for line in remove_comments(contents.splitlines()):
23-
if line.startswith(ignore_lines_starting_with):
23+
if line.startswith(IGNORE_LINES_STARTING_WITH):
2424
continue
2525
rows.append(
2626
[parse_value(value, types[i]) for i, value in enumerate(line.split())]

0 commit comments

Comments
 (0)