Skip to content
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: Postpone coordinate mapping on linear array transforms #187

Merged
merged 7 commits into from
Nov 17, 2023

Conversation

oesteban
Copy link
Collaborator

This PR transforms the coordinates of the reference into the moving image for each timepoint separately, effectively minimizing the memory footprint.

Resolves: #173.

@oesteban oesteban force-pushed the fix/memory-issues-173 branch from 90df2f7 to db1b250 Compare November 16, 2023 20:24
nitransforms/linear.py Outdated Show resolved Hide resolved
nitransforms/linear.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6e70c02) 96.97% compared to head (d148e85) 97.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
+ Coverage   96.97%   97.06%   +0.08%     
==========================================
  Files          13       13              
  Lines        1289     1294       +5     
  Branches      252      251       -1     
==========================================
+ Hits         1250     1256       +6     
  Misses         33       33              
+ Partials        6        5       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oesteban oesteban force-pushed the fix/memory-issues-173 branch from 8b21efa to 616ee06 Compare November 16, 2023 22:20
@oesteban oesteban force-pushed the fix/memory-issues-173 branch from 616ee06 to 40e3c13 Compare November 16, 2023 22:25
@oesteban
Copy link
Collaborator Author

@arokem this should solve the issue we were having in eddymotion before Summer

nitransforms/linear.py Outdated Show resolved Hide resolved
@oesteban oesteban force-pushed the fix/memory-issues-173 branch from aaa69dd to 9bd0c59 Compare November 17, 2023 05:31
Co-authored-by: Chris Markiewicz <[email protected]>
@oesteban oesteban force-pushed the fix/memory-issues-173 branch from 9bd0c59 to d148e85 Compare November 17, 2023 05:32
@oesteban oesteban merged commit 28737f4 into master Nov 17, 2023
11 of 12 checks passed
@oesteban oesteban deleted the fix/memory-issues-173 branch November 17, 2023 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory issues when resampling large 4D files
2 participants