-
Notifications
You must be signed in to change notification settings - Fork 533
ENH: ICA_AROMA: make current working directory default output directory #2056
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
I was a little hasty getting this up. |
Codecov Report
@@ Coverage Diff @@
## master #2056 +/- ##
=========================================
Coverage ? 72.16%
=========================================
Files ? 1137
Lines ? 57194
Branches ? 8194
=========================================
Hits ? 41276
Misses ? 14629
Partials ? 1289
Continue to review full report at Codecov.
|
@jdkent - could you please resolve conflicts with master? relative imports should always be used in nipype - we stopped being careful during review. |
@satra: you've probably answered this a thousand times, but why use relative versus absolute imports? Not that I abide by PEP for everything, but PEP 328 wants to make absolute imports standard. Does it have to do with making sure we are importing the right packages if we have multiple versions of nipype installed? Sorry for badgering, but I am curious. |
@jdkent I think you may be misreading PEP 328, which is about interpretation of import statements. Pre-PEP328, But yes, using relative imports does ensure that we use a package-local version, rather than one found in the PYTHONPATH. (It also helps with including nipype as a submodule in other packages.) Incidentally, @oesteban it looks like |
out_dir = os.path.abspath(self.inputs.out_dir) | ||
outputs['out_dir'] = out_dir | ||
|
||
if isdefined(self.inputs.out_dir): |
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 think I need the isdefined module for this line to run, please let me know if I'm mistaken.
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.
Good catch. Please add isdefined
to the from ..base import
line.
Changes proposed in this pull request