We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9e5ec commit dce8e23Copy full SHA for dce8e23
heudiconv/heuristics/reproin.py
@@ -611,7 +611,14 @@ def infotodict(seqinfo):
611
seqtype_label = 'sbref'
612
613
if not seqtype_label:
614
- lgr.warning("We ended up with an empty label/suffix for %r", series_spec)
+ # Might be provided by the bids ending within series_spec, we would
615
+ # just want to check if that the last element is not _key-value pair
616
+ bids_ending = series_info.get('bids', None)
617
+ if not bids_ending \
618
+ or "-" in bids_ending.split('_')[-1]:
619
+ lgr.warning(
620
+ "We ended up with an empty label/suffix for %r",
621
+ series_spec)
622
623
run = series_info.get('run')
624
if run is not None:
0 commit comments