Skip to content

Conversation

@effigies
Copy link
Member

Fixes #628. At least partially. If we're splitting and concatenating 900MB of data, it seems plausible we could double our usage to 1.8GB. Maybe should call it 2GB to be safe?

@HippocampusGirl
Copy link
Contributor

Awesome, thank you!

@HippocampusGirl
Copy link
Contributor

I'm not sure if you're already on that, but you may want to add the same check here for 1.4.0

sliced = nb.concat_images(
i for i, t in zip(nb.four_to_three(img), t_mask) if t
)

@HippocampusGirl
Copy link
Contributor

Although I guess there you will need the full image, so I may be wrong :-)

@effigies
Copy link
Member Author

Yeah, I don't know that we can avoid loading all the data, but we definitely don't need to be making so many copies.

@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #629 (6d4f2b5) into maint/1.3.x (4d9b741) will increase coverage by 0.86%.
The diff coverage is 80.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           maint/1.3.x     #629      +/-   ##
===============================================
+ Coverage        46.94%   47.80%   +0.86%     
===============================================
  Files               43       43              
  Lines             5287     5290       +3     
  Branches           770      771       +1     
===============================================
+ Hits              2482     2529      +47     
+ Misses            2721     2673      -48     
- Partials            84       88       +4     
Flag Coverage Δ
documentation 0.00% <0.00%> (ø)
reportlettests ∅ <ø> (∅)
unittests 47.90% <80.00%> (+0.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
niworkflows/viz/utils.py 9.52% <0.00%> (ø)
niworkflows/interfaces/registration.py 60.88% <100.00%> (+14.76%) ⬆️
niworkflows/__init__.py 81.81% <0.00%> (+81.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d9b741...6d4f2b5. Read the comment docs.

mgxd and others added 3 commits April 14, 2021 10:34
svgo 2.x dropped support for CLI plugin alteration.
We could generate a JSON config with this option, but
the changes are so miniscule we can likely just drop this flag.
@effigies
Copy link
Member Author

effigies commented Apr 14, 2021

So this is only a smoke test, but it's more than we had, and there doesn't seem to be much point in extensively testing an interface that is removed in the next minor series. I'm going to go ahead and merge.

@effigies effigies merged commit 27b3710 into nipreps:maint/1.3.x Apr 14, 2021
@effigies effigies deleted the fix/limit_genref_volumes branch April 14, 2021 21:47
@effigies
Copy link
Member Author

1.3.3 released. Should hit PyPI in an hour or two.

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.

3 participants