Skip to content

MRG: use get_fdata in docs #637

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

Merged
merged 3 commits into from
Jun 11, 2018
Merged

Conversation

matthew-brett
Copy link
Member

We will soonish deprecate get_data, so remove from the docs now, so as
not to trip up new users.

@coveralls
Copy link

coveralls commented Jun 5, 2018

Coverage Status

Coverage remained the same at 91.789% when pulling 95cb2b4 on matthew-brett:docs-using-get-fdata into 587a6c7 on nipy:master.

We will soonish deprecate get_data, so remove from the docs now, so as
not to trip up new users.
@matthew-brett matthew-brett force-pushed the docs-using-get-fdata branch from fe69514 to 3fbfb6a Compare June 5, 2018 23:19
@codecov-io
Copy link

codecov-io commented Jun 5, 2018

Codecov Report

Merging #637 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #637      +/-   ##
==========================================
+ Coverage   88.81%   88.83%   +0.01%     
==========================================
  Files          92       92              
  Lines       11278    11278              
  Branches     1848     1848              
==========================================
+ Hits        10017    10019       +2     
+ Misses        926      925       -1     
+ Partials      335      334       -1
Impacted Files Coverage Δ
nibabel/dataobj_images.py 100% <0%> (+4.44%) ⬆️

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 587a6c7...95cb2b4. Read the comment docs.

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think there might be one copy-paste operation that didn't get edited.

There was no cast, so the array returned is exactly the array attached to the image:

>>> image_data is array_img.dataobj
False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be misreading, but from the above sentence, I'd think this ought to be:

>>> farray_data is farray_img.dataobj
True

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot - you're right, but then this test fails, revealing the bug I think I have fixed in #638

@matthew-brett matthew-brett changed the title MRG: use get_fdata in docs WIP: use get_fdata in docs Jun 7, 2018
@matthew-brett
Copy link
Member Author

This PR needs to be merged after #638 (with fixes suggested above).

Float64 array images return the array from get_fdata, with default input
arguements, but other data types return the array cast to float64.

Tests will fail before merge of fix in
nipy#638 .
@effigies effigies changed the title WIP: use get_fdata in docs MRG: use get_fdata in docs Jun 11, 2018
@effigies
Copy link
Member

These stochastic AppVeyor failures seem to be cropping up again. Are you okay if I just go ahead and merge?

@matthew-brett
Copy link
Member Author

Yes, go for it ...

@effigies effigies merged commit 0045ed4 into nipy:master Jun 11, 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.

4 participants