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

ENH: Add an .asaffine() member to TransformChain #90

Merged
merged 4 commits into from
Mar 28, 2020

Conversation

oesteban
Copy link
Collaborator

This PR starts the implementation of "collapsing" series of transforms,
for the linear case.

It is tested on real data added in the context of #66, #74 and #75.
For the moment does not cover unintended use-cases such as collapsing
transform sequences containing one or more nonlinear transforms.

Resolves: #88

Unverified

This user has not yet uploaded their public signing key.
This PR starts the implementation of "collapsing" series of transforms,
for the linear case.

It is tested on real data added in the context of nipy#66, nipy#74 and nipy#75.
For the moment does not cover unintended use-cases such as collapsing
transform sequences containing one or more nonlinear transforms.

Resolves: nipy#88
@pull-assistant
Copy link

pull-assistant bot commented Mar 28, 2020

Score: 0.96

Best reviewed: commit by commit


Optimal code review plan (1 warning)

feat: add an ``.asaffine()`` member to ``TransformChain``

nitransforms/manip.py 62% changes removed in enh: cover one misse...

     feat: add the matmul operator on Affines and leverage it collapsing

     enh: cover one missed out line

     enh: cover one partial line

Powered by Pull Assistant. Last update 50f3f70 ... 6afb6f0. Read the comment docs.

Unverified

This user has not yet uploaded their public signing key.
@codecov-io
Copy link

codecov-io commented Mar 28, 2020

Codecov Report

Merging #90 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   98.96%   99.07%   +0.11%     
==========================================
  Files          12       12              
  Lines        1059     1077      +18     
  Branches      135      138       +3     
==========================================
+ Hits         1048     1067      +19     
  Misses          6        6              
+ Partials        5        4       -1     
Flag Coverage Δ
#unittests 99.07% <100.00%> (+0.11%) ⬆️
Impacted Files Coverage Δ
nitransforms/linear.py 97.60% <100.00%> (+0.20%) ⬆️
nitransforms/manip.py 100.00% <100.00%> (ø)
nitransforms/base.py 100.00% <0.00%> (+0.67%) ⬆️

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 1e4aa00...6afb6f0. Read the comment docs.

@pep8speaks
Copy link

pep8speaks commented Mar 28, 2020

Hello @oesteban! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-03-28 05:18:05 UTC

Unverified

This user has not yet uploaded their public signing key.
@oesteban oesteban marked this pull request as ready for review March 28, 2020 04:47
@oesteban oesteban force-pushed the enh/88-collapse-linear-xfms branch from 0db6657 to 58e6ab8 Compare March 28, 2020 05:03

Unverified

This user has not yet uploaded their public signing key.
@oesteban oesteban force-pushed the enh/88-collapse-linear-xfms branch from 58e6ab8 to 6afb6f0 Compare March 28, 2020 05:18
@oesteban oesteban merged commit 93813b1 into nipy:master Mar 28, 2020
@oesteban oesteban deleted the enh/88-collapse-linear-xfms branch March 28, 2020 05:42
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.

Add a method to "collapse" the linear transforms in a TransformChain
3 participants