You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I specify the wrong folder structure for the OpenEphysRecordingInterface, I get an error message that is not helpful and appears to be cut off.
To Reproduce
Steps that leads to the issue:
I have selected the OpenEphysRecordingInterface, chose not to Locate Data Programmatically, entered Subject Details, and then:
On the Source Data page, I selected a Folder Path and clicked the "Request Metadata Schema" button.
I got a red popup error that says "Unable to identify the OpenEphys folder structure! Please check that your folder_path' contains sub-folders of the following form" but does not tell me the form... (see screenshot below)
It looks like the red box has a max height and the text is being cut off.
In the Developer Tools, I see this error which has the full error message.
[main-process]: [2023-12-19 15:10:32,107] ERROR in app: Exception on /neuroconv/metadata [POST]
Traceback (most recent call last):
File "neuroconv/datainterfaces/ecephys/openephys/openephysbinarydatainterface.py", line 70, in __init__
_open_with_pyopenephys(folder_path=folder_path)
File "neuroconv/datainterfaces/ecephys/openephys/openephysbinarydatainterface.py", line 18, in _open_with_pyopenephys
pyopenephys_file = pyopenephys.File(foldername=folder_path)
File "pyopenephys/core.py", line 194, in __init__
Exception: Only 'binary' and 'openephys' format are supported by pyopenephys
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "flask/app.py", line 1484, in full_dispatch_request
File "flask/app.py", line 1469, in dispatch_request
File "flask_restx/api.py", line 404, in wrapper
File "flask/views.py", line 109, in view
File "flask_restx/resource.py", line 46, in dispatch_request
File "apis/neuroconv.py", line 84, in post
File "manageNeuroconv/manage_neuroconv.py", line 254, in get_metadata_schema
File "manageNeuroconv/manage_neuroconv.py", line 217, in instantiate_custom_converter
File "neuroconv/nwbconverter.py", line 65, in __init__
self.data_interface_objects = {
File "neuroconv/nwbconverter.py", line 66, in <dictcomp>
name: data_interface(**source_data[name])
File "neuroconv/datainterfaces/ecephys/openephys/openephysdatainterface.py", line 47, in __new__
return OpenEphysBinaryRecordingInterface(
File "neuroconv/datainterfaces/ecephys/openephys/openephysbinarydatainterface.py", line 79, in __init__
raise ValueError(
ValueError: Unable to identify the OpenEphys folder structure! Please check that your `folder_path` contains sub-folders of the following form: 'experiment<index>' -> 'recording<index>' -> 'continuous'.
Expected behavior
I expected to see the full error message in the popup to guide corrective action.
Screenshots
Operating system used:
OS: Mac arm64 (M1)
The text was updated successfully, but these errors were encountered:
Describe the issue
When I specify the wrong folder structure for the OpenEphysRecordingInterface, I get an error message that is not helpful and appears to be cut off.
To Reproduce
Steps that leads to the issue:
I have selected the OpenEphysRecordingInterface, chose not to Locate Data Programmatically, entered Subject Details, and then:
On the Source Data page, I selected a Folder Path and clicked the "Request Metadata Schema" button.
I got a red popup error that says "Unable to identify the OpenEphys folder structure! Please check that your folder_path' contains sub-folders of the following form" but does not tell me the form... (see screenshot below)
It looks like the red box has a max height and the text is being cut off.
In the Developer Tools, I see this error which has the full error message.
Expected behavior
I expected to see the full error message in the popup to guide corrective action.
Screenshots
Operating system used:
The text was updated successfully, but these errors were encountered: