Merge pull request #63 from ANaaim/Correction_calibration

Correction in list comprehension to allow the second term to be consider
This commit is contained in:
David PAGNON 2024-01-19 21:03:56 +01:00 committed by GitHub
commit c29abcc9d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1210,7 +1210,7 @@ def calibrate_cams_all(config):
# Read config # Read config
project_dir = config.get('project').get('project_dir') project_dir = config.get('project').get('project_dir')
calib_dir = [os.path.join(project_dir, c) for c in os.listdir(project_dir) if ('Calib' or 'calib') in c][0] calib_dir = [os.path.join(project_dir, c) for c in os.listdir(project_dir) if ('Calib' in c or 'calib' in c)][0]
calib_type = config.get('calibration').get('calibration_type') calib_type = config.get('calibration').get('calibration_type')
if calib_type=='convert': if calib_type=='convert':