-
Notifications
You must be signed in to change notification settings - Fork 91
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
[WIP] : simplify fpath #721
base: main
Are you sure you want to change the base?
Conversation
mne_bids/path.py
Outdated
@@ -409,6 +410,8 @@ def fpath(self): | |||
# get the inner-most BIDS directory for this file path | |||
data_path = self.directory | |||
|
|||
assert self.root is not None |
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.
We could make use of MNE's _validate_type()
IIRC basename is like
I will try to set aside time soon. |
@adam2392 should basename == BIDSPath.fpath.name ? |
I believe so |
@agramfort I don't believe I have write access here? |
if you have commit right on mne-bids you do |
I've just granted you write access to this repo, can you push here now? |
Stupid question: how do I fetch this PR?
|
I recommend that you use https://github.com/cli/cli ... it simplifies these sorts of things remarkably well. See the following screenshot (upper right corner in the image): but for the record, with just
If you have maintainer rights (I think you don't right now) you can also push to alex's fork directly ... pretty much what I did for your fork in #717 |
git fetch --all
git switch simplify_fpath |
I've granted @adam2392 |
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
My understanding of our simplification is to entirely remove the attempt at "matching basenames" inside |
My understanding of our simplification is to entirely remove the attempt at "matching basenames" inside fpath, and simply have fpath be an appendage of BIDSPath.directory and BIDSPath.basename. Is this correct?
if this works this would very simple to explain. If you can...
|
I am running into an error with the emptyroom stuff, which I am now out of my depth as to how to address the issue. Those functions use
@hoechenberger would you be able to assist? |
@adam2392 you need to rebase. |
I've resolved the merge conflict. Looking into the emptyroom stuff now. |
This reverts commit eed7efa.
Moving to 0.10 milestone |
attempt to close #712
cc @adam2392 @dmalt
@adam2392 looking more closely at this issue I am not sure what
is the intended difference between .basename and .fpath attribute
in BIDSPath.
CI will be red here but it starts the ball rolling.
@adam2392 you can push to this PR if you want