Free Motion Capture for Everyone πβ¨
TypeScript
More explicit pipeline check error messages (#637)
philipqueen893abdb79e61
diff --git a/freemocap/core_processes/process_motion_capture_videos/process_recording_folder.py b/freemocap/core_processes/process_motion_capture_videos/process_recording_folder.pyindex a5493cab..4cb0b5be 100644--- a/freemocap/core_processes/process_motion_capture_videos/process_recording_folder.py+++ b/freemocap/core_processes/process_motion_capture_videos/process_recording_folder.py@@ -61,7 +61,9 @@ def process_recording_folder(try:processing_pipeline_check(processing_parameters=recording_processing_parameter_model)except FileNotFoundError as e:- logger.error("processing parameters are not valid for recording status")+ logger.error(+ "processing parameters are not valid for recording status"+ f" ::: {e}")if logging_queue:logging_queue.put(e)raise ediff --git a/freemocap/core_processes/process_motion_capture_videos/processing_pipeline_functions/pipeline_check.py b/freemocap/core_processes/process_motion_capture_videos/processing_pipeline_functions/pipeline_check.pyindex f06f9959..a0f746ff 100644--- a/freemocap/core_processes/process_motion_capture_videos/processing_pipeline_functions/pipeline_check.py+++ b/freemocap/core_processes/process_motion_capture_videos/processing_pipeline_functions/pipeline_check.py@@ -10,24 +10,30 @@ def processing_pipeline_check(processing_parameters: ProcessingParameterModel) -status_check_dict = processing_parameters.recording_info_model.status_checkif not status_check_dict["synchronized_videos_status_check"]:raise FileNotFoundError(- f"Could not find synchronized_videos folder at {processing_parameters.recording_info_model.synchronized_videos_folder_path}"+ f"Could not find synchronized_videos folder at {processing_parameters.recording_info_model.synchronized_videos_folder_path}\n"+ "::: Synchronized videos are required to run the processing pipeline")if not processing_parameters.tracking_parameters_model.run_image_tracking:if not status_check_dict["data2d_status_check"]:raise FileNotFoundError(- f"No 2d data found at: {processing_parameters.recording_info_model.data_2d_npy_file_path}"+ f"No 2d data found at: {processing_parameters.recording_info_model.data_2d_npy_file_path}\n"+ "::: 2d data is required if you have turned off `Run 2d image tracking?` in the processing parameters")if not processing_parameters.anipose_triangulate_3d_parameters_model.run_3d_triangulation:if not status_check_dict["data3d_status_check"] and not status_check_dict["single_video_check"]:raise FileNotFoundError(- f"No 3d data found at: {processing_parameters.recording_info_model.data_3d_npy_file_path}"+ f"No 3d data found at: {processing_parameters.recording_info_model.data_3d_npy_file_path}\n"+ "::: 3d data is required if you have selected `Run 3d triangulation?` in the processing parameters"+ " and have more than 1 video in your synchronized videos folder")else:if not status_check_dict["calibration_toml_check"] and not status_check_dict["single_video_check"]:raise FileNotFoundError(- f"No calibration file found at: {processing_parameters.recording_info_model.calibration_toml_path}"+ f"No calibration file found at: {processing_parameters.recording_info_model.calibration_toml_path}\n"+ ":::A calibration.toml file is required if you have selected `Run 3d triangulation?` in the processing parameters"+ " and have more than 1 video in your synchronized videos folder")