Skip to content

Commit

Permalink
fix validation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jun 5, 2024
1 parent 78c63b6 commit 39a90db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def convert_to_nwb(
"""Function used to convert the source data to NWB format using the specified metadata."""

import requests
from neuroconv import NWBConverter
import neuroconv
from tqdm_publisher import TQDMProgressSubscriber

url = info.get("url", None)
Expand Down Expand Up @@ -975,7 +975,7 @@ def update_conversion_progress(message):

interface_or_subconverter = converter.data_interface_objects[sub_interface]

if isinstance(interface_or_subconverter, NWBConverter):
if isinstance(interface_or_subconverter, neuroconv.NWBConverter):
subconverter = interface_or_subconverter

update_recording_properties_from_table_as_json(
Expand Down Expand Up @@ -1013,6 +1013,7 @@ def update_conversion_progress(message):
package_json = json.load(fp=fp)
app_version = package_json["version"]
resolved_metadata["NWBFile"]["source_script"] = f"Created using NWB GUIDE v{app_version}"
resolved_metadata["NWBFile"]["source_script_file_name"] = neuroconv.__file__ # Must be included to be valid

# Actually run the conversion
converter.run_conversion(
Expand Down

0 comments on commit 39a90db

Please sign in to comment.