mne-bids icon indicating copy to clipboard operation
mne-bids copied to clipboard

Fix BIDSPath.basename for cases where only an extension was provided

Open hoechenberger opened this issue 2 years ago • 1 comments

#%%
from mne_bids import BIDSPath
bp = BIDSPath(extension='.vhdr')
bp

main: Screen Shot 2022-09-01 at 20 55 03

this PR: Screen Shot 2022-09-01 at 20 55 19

Merge checklist

Maintainer, please confirm the following before merging. If applicable:

  • [ ] All comments are resolved
  • [ ] This is not your own PR
  • [ ] All CIs are happy
  • [ ] PR title starts with [MRG]
  • [ ] whats_new.rst is updated
  • [ ] New contributors have been added to CITATION.cff
  • [ ] PR description includes phrase "closes <#issue-number>"

hoechenberger avatar Sep 01 '22 18:09 hoechenberger

I believe there was still something missing, I don't remember. I can try to take a look within the next couple of days

hoechenberger avatar Oct 26 '22 21:10 hoechenberger