-
Notifications
You must be signed in to change notification settings - Fork 100
ENH Brain.add_label(): find labels in subfolder #85
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
Conversation
LGTM |
I like the general idea here, but I'm not wild about the implementation. That looks a lot like a path, but it's not treated as a path. Seems like it could be very confusing. Other options would be
With some preference for latter, but I'm open to other options too. |
If nobody else wants to weigh in should I just add the subdir argument? |
I also have a preference for the latter subdir method, because I generally |
fine with me +1 for merge on my side |
@@ -1030,6 +1033,7 @@ def add_label(self, label, color="crimson", alpha=1, | |||
filepath = pjoin(self.subjects_dir, | |||
self.subject_id, | |||
'label', | |||
subdir, |
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.
Won't this fail when subdir
is 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.
Sorry I was too quick!
On Jan 25, 2014, at 12:39 PM, Michael Waskom notifications@github.com wrote:
In surfer/viz.py:
@@ -1030,6 +1033,7 @@ def add_label(self, label, color="crimson", alpha=1,
filepath = pjoin(self.subjects_dir,
self.subject_id,
'label',
Won't this fail when subdir is None?subdir,
—
Reply to this email directly or view it on GitHub.
Updated the code and the DOC, better? |
Thanks! |
ENH Brain.add_label(): find labels in SUBJECTS_DIR subfolder
This would allow