-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix several warnings #364
Merged
Merged
Fix several warnings #364
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7cea8c2
Address seaborn warning.
tsalo ad3d428
Address numpy.linalg.lstsq warning.
tsalo 513099b
Address NiftiLabelsMasker warning.
tsalo ff33f52
Drop pkg_resources.
tsalo f1fb3c8
Maybe fix.
tsalo c27fb33
Update aslprep/cli/workflow.py
tsalo 0dc5684
readable() produces Paths.
tsalo 81b8bd1
Apply suggestions from code review
tsalo f1cd4b3
Add data module to API docs.
tsalo d4b4559
Merge branch 'fix-warnings' of https://github.com/tsalo/aslprep into …
tsalo f1431c0
Address API formatting issues.
tsalo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | ||
# vi: set ft=python sts=4 ts=4 sw=4 et: | ||
"""Nipype interfaces for aslprep.""" | ||
from aslprep.interfaces.bids import DerivativesDataSink | ||
from aslprep.interfaces.confounds import GatherConfounds | ||
from aslprep.interfaces.plotting import ASLCarpetPlot, CBFSummaryPlot | ||
from aslprep.interfaces.reports import ( | ||
AboutSummary, | ||
CBFSummary, | ||
FunctionalSummary, | ||
SubjectSummary, | ||
from aslprep.interfaces import ( | ||
ants, | ||
bids, | ||
cbf, | ||
confounds, | ||
parcellation, | ||
plotting, | ||
reference, | ||
reports, | ||
utility, | ||
) | ||
|
||
__all__ = [ | ||
"AboutSummary", | ||
"ASLCarpetPlot", | ||
"CBFSummary", | ||
"CBFSummaryPlot", | ||
"DerivativesDataSink", | ||
"FunctionalSummary", | ||
"GatherConfounds", | ||
"SubjectSummary", | ||
"ants", | ||
"bids", | ||
"cbf", | ||
"confounds", | ||
"parcellation", | ||
"plotting", | ||
"reference", | ||
"reports", | ||
"utility", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
"""Utility functions for aslprep.""" | ||
from aslprep.utils import ( | ||
asl, | ||
atlas, | ||
bids, | ||
cbf, | ||
confounds, | ||
misc, | ||
plotting, | ||
sentry, | ||
spaces, | ||
) | ||
|
||
__all__ = [ | ||
"asl", | ||
"atlas", | ||
"bids", | ||
"cbf", | ||
"confounds", | ||
"misc", | ||
"plotting", | ||
"sentry", | ||
"spaces", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | ||
# vi: set ft=python sts=4 ts=4 sw=4 et: | ||
"""Workflows for the ASL processing portions of ASLPrep.""" | ||
from aslprep.workflows.asl import base, cbf, confounds, hmc | ||
from aslprep.workflows.asl import ( | ||
apply, | ||
base, | ||
cbf, | ||
confounds, | ||
fit, | ||
hmc, | ||
outputs, | ||
plotting, | ||
reference, | ||
resampling, | ||
util, | ||
) | ||
|
||
__all__ = [ | ||
"apply", | ||
"base", | ||
"cbf", | ||
"confounds", | ||
"fit", | ||
"hmc", | ||
"outputs", | ||
"plotting", | ||
"reference", | ||
"resampling", | ||
"util", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 would pretty much only use
readable()
in the formload_data.readable(...).read_<text|bytes>()
, as otherwise you need to check that whoever you're passing it to is only going to useread_text()
orread_bytes()
.