Skip to content

Commit

Permalink
Update manage_neuroconv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Jan 1, 2024
1 parent 249089d commit cd1e329
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cd1e329

Please sign in to comment.