From cd1e329a735792d43f4b52e137b01c57d8ca4415 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Mon, 1 Jan 2024 14:06:30 -0600 Subject: [PATCH] Update manage_neuroconv.py --- pyflask/manageNeuroconv/manage_neuroconv.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyflask/manageNeuroconv/manage_neuroconv.py b/pyflask/manageNeuroconv/manage_neuroconv.py index ea3accbb4..3d618680b 100644 --- a/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/pyflask/manageNeuroconv/manage_neuroconv.py @@ -395,6 +395,13 @@ def convert_to_nwb(info: dict) -> str: resolved_output_path.parent.mkdir(exist_ok=True, parents=True) # Ensure all parent directories exist + + for interface_name, interface_class_name in info["interfaces"].items(): + if (interface_class_name == 'VideoInterface' or interface_class_name == 'AudioInterface'): + interface_source_data = info["source_data"][interface_name] + interface_source_data["file_paths"] = list(map(lambda path: os.path.relpath(path, resolved_output_path), interface_source_data["file_paths"])) + + converter = instantiate_custom_converter(info["source_data"], info["interfaces"]) def update_conversion_progress(**kwargs):