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.

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
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
Co-authored-by: Chris Markiewicz <[email protected]>
@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