-
Notifications
You must be signed in to change notification settings - Fork 272
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
Reduce volume memory usage #168
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
348c75d
Reduce volume memory usage
glasserm 8ad2ca5
More logical and efficient sequence of steps for the the hp>0 condition
mharms b7303a8
Forgot to modify the fslmaths -bptf call to operate on the original f…
mharms e2a0f24
Change shell rm to matlab delete
coalsont 9ac0eaa
change single(zeros(... to zeros(..., 'single')
coalsont 97761a9
Add a couple linebreaks just to match other code
mharms 624c8d1
MATLAB compile: functionhighpassandvariancenormalize
hodgem 2430741
Update icaDim.m
glasserm bad46a5
Update icaDim.m
glasserm c05996a
Update icaDim.m
glasserm 6edc725
Update icaDim.m
glasserm d122f4c
Some minor code restructuring to hopefully faciliate readability
mharms e0c8ca2
Decrease memory usage of functionhighpass by using 'range' instead of…
mharms a5b0cd2
Decrease memory usage of icaDim by using 'range' instead of 'std'; Ad…
mharms f1b2c5f
Delete 'data' once done with it
mharms 9f08366
Fix some whitespace (tab vs space) misalignment
mharms ca736b1
Add reporting of percentage of masked voxels
mharms a75919f
MATLAB compile: functionhighpassandvariancenormalize
hodgem 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
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.
Input variables don't count as used memory until they are assigned to, nor does a trivial copy (no indexing expression). I prefer not overwriting variables with modified versions, and in this case and data_detrend, it shouldn't improve memory usage versus my version.
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'll add the
usemask
stuff, but I don't see the disadvantage of overwriting variables with a modified version, esp. since it is a misnomer to name the variabledata_detrend
since whether it is actually detrended depends on the value ofDEMDT
.