File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1567,7 +1567,8 @@ def _compute_wiring_from_oebin(
15671567 oebin_file : str or Path
15681568 Path to the structure.oebin JSON file.
15691569 stream_name : str
1570- Stream name to select from the oebin's continuous streams.
1570+ Stream name to select from the oebin's continuous streams. It needs to correspond to the folder_name field
1571+ in the oebin file.
15711572 settings_file : str or Path
15721573 Path to settings.xml (used only in error messages).
15731574
@@ -1581,16 +1582,11 @@ def _compute_wiring_from_oebin(
15811582 with open (oebin_file , "r" ) as f :
15821583 oebin = json .load (f )
15831584
1584- # Neo/SpikeInterface prepends "Record Node NNN#" to stream names.
1585- # Strip that prefix so we can match against the raw oebin folder_name.
1586- is_neo_stream = "#" in stream_name
1587- oebin_stream_name = stream_name .split ("#" )[- 1 ] if is_neo_stream else stream_name
1588-
15891585 continuous_streams = oebin .get ("continuous" , [])
15901586 matched_stream = None
15911587 for cs in continuous_streams :
15921588 folder_name = cs .get ("folder_name" , "" ).rstrip ("/" )
1593- if folder_name == oebin_stream_name :
1589+ if folder_name == stream_name :
15941590 matched_stream = cs
15951591 break
15961592
You can’t perform that action at this time.
0 commit comments