run_conversion
fails to add data when in-memory nwbfile is passed. Feature or bug?
#1159
Labels
run_conversion
fails to add data when in-memory nwbfile is passed. Feature or bug?
#1159
Summary: when using
converter.run_conversion
and thenwbfile
argument is used to pass an in-memory nwbfile then the data from the converter is not added. This sounds like a bug to me but I don't know if this was intended behavior at some point.What do you think? @pauladkisson @weiglszonja @bendichter @alessandratrapani
The reason for this behavior is found on these lines that only call
add_to_nwbfile
if no nwbfile is provided.neuroconv/src/neuroconv/nwbconverter.py
Lines 272 to 274 in 05423d1
For a concrete example, see the following:
Both assertions fail no matter the order. In other words, neither the recording interface nor sorting interface data are added when calling run conversion.
Relevant: the existence of this behavior is used in our testing here:
neuroconv/src/neuroconv/tools/testing/data_interface_mixins.py
Lines 227 to 238 in 05423d1
Where the test would fail if null behavior were to change as the converter would try to add the data again.
The text was updated successfully, but these errors were encountered: