From 0af7b2c1a42cd12da017f4d9409465b81b5fcf00 Mon Sep 17 00:00:00 2001 From: Anaaim Date: Thu, 18 Jan 2024 11:48:55 +0100 Subject: [PATCH] Correction in list comprehension to allow the second term to be consider --- Pose2Sim/calibration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pose2Sim/calibration.py b/Pose2Sim/calibration.py index 871d440..a1c3c5a 100644 --- a/Pose2Sim/calibration.py +++ b/Pose2Sim/calibration.py @@ -1210,7 +1210,7 @@ def calibrate_cams_all(config): # Read config 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') if calib_type=='convert':