@@ -369,13 +369,15 @@ def get_segment_tuple(info):
369369
370370
371371 # Probe index calculation
372- # This ensures that all nidq entries come before any other keys, which corresponds to index 0.
372+ # The calculation is ordered by slot, port, dock in that order, this is the number that appears in the filename
373+ # after imec when using native names (e.g. imec0, imec1, etc.)
373374 def get_probe_tuple (info ):
374375 slot = normalize (info .get ("probe_slot" ))
375376 port = normalize (info .get ("probe_port" ))
376377 dock = normalize (info .get ("probe_dock" ))
377378 return (slot , port , dock )
378379
380+ # TODO: handle one box case
379381 info_list_imec = [info for info in info_list if info .get ("device" ) != "nidq" ]
380382 unique_probe_tuples = {get_probe_tuple (info ) for info in info_list_imec }
381383 sorted_probe_keys = sorted (unique_probe_tuples )
@@ -593,6 +595,7 @@ def extract_stream_info(meta_file, meta):
593595 info ["trigger_num" ] = trigger_num
594596 info ["device" ] = device
595597 info ["stream_kind" ] = stream_kind
598+ # All non-production probes (phase 3B onwards) have "typeThis", otherwise revert to file parsing
596599 info ["device_kind" ] = meta .get ("typeThis" , device .split ("." )[0 ])
597600 info ["units" ] = units
598601 info ["channel_names" ] = [txt .split (";" )[0 ] for txt in meta ["snsChanMap" ]]
0 commit comments