-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MRG: Add "description" entity to BIDSPath #1057
MRG: Add "description" entity to BIDSPath #1057
Conversation
('recording', self.recording), | ||
('split', self.split) | ||
]) | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dict insertion order is preserved in Python 3.7+, so no need to have an OrderedDict anymore
…e-bids into hoechenberger/issue1049
Needs to be added to get_entities_from_fname() (???) too |
I would say yes to be consistent
… Message ID: ***@***.***>
|
Yep absolutely, I just wasn't sure about the exact name of that function :) |
Co-authored-by: Alexandre Gramfort <[email protected]>
Doc build is broken due to recent changes upstream in MNE. |
@alexrockhill can you have a look the doc build issue? It’s related to seeg example 🙏 |
…e-bids into hoechenberger/issue1049
|
Wow, how did you even find that 😅 but perfect |
Actually no it's not good. Why is split not last? Having it not be last doesn't make any sense to me. |
Failing tests all seem to be due to new set_montage() behavior upstream. |
Codecov Report
@@ Coverage Diff @@
## main #1057 +/- ##
==========================================
+ Coverage 93.95% 95.17% +1.21%
==========================================
Files 25 25
Lines 3822 3831 +9
==========================================
+ Hits 3591 3646 +55
+ Misses 231 185 -46
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
…e-bids into hoechenberger/issue1049
'space': self.space, | ||
'recording': self.recording, | ||
'split': self.split, | ||
'description': self.description, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a loose thought...
Is it worth differentiating "raw" entities and "derivative" entities? E.g. via a parameter passed to entities
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about this too at least for writing, but I'd say we can always add this later on... for now we had a specific use case where @agramfort couldnt read some OpenNeuro data with MNE-BIDS, and this PR fixes this :)
Looks like it's passing now, happy to review though. |
@sappelhoff merge if happy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Richard!
Fixes #1049
Fixes #449
It seems to be working already:
@sappelhoff It's unclear to me where exactly to inject the
desc
entity in the BIDS path. For now, I'm putting it at the very end, beforesplit
andsuffix
. I couldn't find anything in the BIDS spec to help here.@agramfort Please feel free to test and also to finalize ;)
Merge checklist
Maintainer, please confirm the following before merging.
If applicable: