Skip to content
Snippets Groups Projects
Commit 37c5a128 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

SSB-47: Rename variable name

parent 7cd8c1a9
No related branches found
No related tags found
1 merge request!44Merge back holography to master
......@@ -31,7 +31,7 @@ _ATTRIBUTE_NAME_TO_SERIALIZED_NAME = {
'calibration_ppsdelay': 'CalTableHeader.Calibration.PPSDelay',
'comment': 'CalTableHeader.Comment'
}
_CALIBRATION_TABLE_FILENAME_PATTERN = '**/*CalTable_???_mode?.dat'
_CALIBRATION_TABLE_GLOB_PATH = '**/*CalTable_???_mode?.dat'
class InvalidFileException(Exception):
......@@ -217,7 +217,7 @@ class CalibrationTable:
def read_calibration_tables_in_directory(directory_path: str):
if not path.isdir(directory_path):
raise NotADirectoryError(directory_path)
files = path.join(directory_path, _CALIBRATION_TABLE_FILENAME_PATTERN)
files = path.join(directory_path, _CALIBRATION_TABLE_GLOB_PATH)
return [CalibrationTable.load_from_file(file_path)
for file_path in glob(files, recursive=True)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment