Free Motion Capture for Everyone πβ¨
TypeScript
Update deprecated pydantic dict method (#721)
Emmanuel Ferdman9f343fb98392
diff --git a/experimental/batch_process/batch_process.py b/experimental/batch_process/batch_process.pyindex 9de4339d..a46b88f0 100644--- a/experimental/batch_process/batch_process.py+++ b/experimental/batch_process/batch_process.py@@ -66,7 +66,7 @@ def process_recording_without_gui(else:logging.warning("No camera calibration toml file provided. May cause an error with multicamera recordings.")- recording_info_dict = rec.dict(exclude={"recording_info_model"})+ recording_info_dict = rec.model_dump(exclude={"recording_info_model"})Path(rec.recording_info_model.output_data_folder_path).mkdir(parents=True, exist_ok=True)diff --git a/freemocap/core_processes/process_motion_capture_videos/process_recording_headless.py b/freemocap/core_processes/process_motion_capture_videos/process_recording_headless.pyindex e7f1ea95..7c62816b 100644--- a/freemocap/core_processes/process_motion_capture_videos/process_recording_headless.py+++ b/freemocap/core_processes/process_motion_capture_videos/process_recording_headless.py@@ -60,7 +60,7 @@ def process_recording_headless(f"There are {number_of_videos} videos. Must provide a calibration toml file for multicamera recordings.")- recording_info_dict = rec.dict(exclude={"recording_info_model"})+ recording_info_dict = rec.model_dump(exclude={"recording_info_model"})Path(rec.recording_info_model.output_data_folder_path).mkdir(parents=True, exist_ok=True)diff --git a/freemocap/gui/qt/workers/process_motion_capture_data_thread_worker.py b/freemocap/gui/qt/workers/process_motion_capture_data_thread_worker.pyindex b16b2bad..867eb15a 100644--- a/freemocap/gui/qt/workers/process_motion_capture_data_thread_worker.py+++ b/freemocap/gui/qt/workers/process_motion_capture_data_thread_worker.py@@ -33,11 +33,11 @@ class ProcessMotionCaptureDataThreadWorker(QThread):def run(self):logger.info(- f"Beginning processing of motion capture data with parameters: {self._processing_parameters.dict(exclude={'tracking_model_info'})}"+ f"Beginning processing of motion capture data with parameters: {self._processing_parameters.model_dump(exclude={'tracking_model_info'})}")self._kill_event.clear()- recording_info_dict = self._processing_parameters.dict(exclude={"recording_info_model"})+ recording_info_dict = self._processing_parameters.model_dump(exclude={"recording_info_model"})Path(self._processing_parameters.recording_info_model.output_data_folder_path).mkdir(parents=True, exist_ok=True)