Skip to content

Commit

Permalink
Merge pull request #702 from yarikoptic/enhs
Browse files Browse the repository at this point in the history
Various tiny enhancements flake etc demanded
  • Loading branch information
yarikoptic authored Sep 1, 2023
2 parents fcc315c + 1215a2c commit 69c271e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions heudiconv/heuristics/reproin.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,9 @@ def infotoids(seqinfos: Iterable[SeqInfo], outdir: str) -> dict[str, Optional[st
# TODO: fix up subject id if missing some 0s
if study_description:
# Generally it is a ^ but if entered manually, ppl place space in it
split = re.split("[ ^]", study_description, 1)
# split first one even more, since couldbe PI_Student or PI-Student
split = re.split("-|_", split[0], 1) + split[1:]
split = re.split("[ ^]", study_description, maxsplit=1)
# split first one even more, since could be PI_Student or PI-Student
split = re.split("[-_]", split[0], maxsplit=1) + split[1:]

# locator = study_description.replace('^', '/')
locator = "/".join(split)
Expand Down

0 comments on commit 69c271e

Please sign in to comment.