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

MRG: new numpy protects polynomial coefficients #431

Merged
merged 1 commit into from Jan 15, 2018

Conversation

matthew-brett
Copy link
Member

New numpy returns a copy of the polynomial coefficients from poly.c,
rather than the actual coefficent array, so when we were modifying the
polynomial coefficients, the polynomial object wasn't seeing our
changes, leading to errors in the RFT module - see e.g.

https://nipy.bic.berkeley.edu/builders/nipy-py2.7-osx-10.10/builds/52/steps/shell_9/logs/stdio

Numpy issue raised on numpy-discussion mailing list.

@matthew-brett
Copy link
Member Author

@jonathan-taylor - does this look right to you? I couldn't see any reason the coefficients had to be inside a poly object...

New numpy returns a copy of the polynomial coefficients from poly.c,
rather than the actual coefficent array, so when we were modifying the
polynomial coefficients, the polynomial object wasn't seeing our
changes, leading to errors in the RFT module - see e.g.

https://nipy.bic.berkeley.edu/builders/nipy-py2.7-osx-10.10/builds/52/steps/shell_9/logs/stdio

Numpy issue raised on numpy-discussion mailing list.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c35c0d9 on matthew-brett:fix-numpy-1.13-breakage into ** on nipy:master**.

@matthew-brett
Copy link
Member Author

Superseded by (quite independent repeat) fix in #435

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@d49e829). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #431   +/-   ##
=========================================
  Coverage          ?   83.25%           
=========================================
  Files             ?      301           
  Lines             ?    28190           
  Branches          ?     3280           
=========================================
  Hits              ?    23469           
  Misses            ?     3719           
  Partials          ?     1002
Impacted Files Coverage Δ
nipy/algorithms/statistics/tests/test_rft.py 98.75% <100%> (ø)
nipy/algorithms/statistics/rft.py 82.85% <100%> (ø)

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 d49e829...c35c0d9. Read the comment docs.

@matthew-brett
Copy link
Member Author

On second thoughts, I'll merge this one, and rebase the later one.

@matthew-brett matthew-brett merged commit f0f35ad into nipy:master Jan 15, 2018
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.

None yet

3 participants