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

Siemens CSA Reader: Increase maximum number of items #690

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

isolovey
Copy link
Contributor

@isolovey isolovey commented Nov 7, 2018

No description provided.

@isolovey
Copy link
Contributor Author

isolovey commented Nov 7, 2018

I've encountered a file with 282 items. It might even make sense to do away with this limit altogether.

@effigies
Copy link
Member

effigies commented Nov 7, 2018

This seems fine to me.

A limit of 99 was added by @matthew-brett in 59dc04a and updated to 199 by @kevlarkevin in #242. Could one or both of you chime in on the original intent, and whether it makes sense to keep a fixed limit at all?

@isolovey-robarts In any event, you may want to update the test added in #242.

@matthew-brett
Copy link
Member

No principled reason for the number, just there to avoid getting locked into parsing a broken header into the rest of the filesystem.

@coveralls
Copy link

coveralls commented Nov 9, 2018

Coverage Status

Coverage remained the same at 91.851% when pulling 8c90a20 on isolovey-robarts:max_csa_items into ad26878 on nipy:master.

@isolovey
Copy link
Contributor Author

isolovey commented Nov 9, 2018

Kept the limit at 1000 and fixed the tests.

@effigies
Copy link
Member

Please merge master to fix style checks.

@codecov-io
Copy link

Codecov Report

Merging #690 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #690   +/-   ##
=======================================
  Coverage   88.88%   88.88%           
=======================================
  Files          93       93           
  Lines       11449    11449           
  Branches     1892     1892           
=======================================
  Hits        10176    10176           
  Misses        933      933           
  Partials      340      340
Impacted Files Coverage Δ
nibabel/nicom/csareader.py 84.44% <100%> (ø) ⬆️
nibabel/spatialimages.py 96.33% <0%> (ø) ⬆️
nibabel/nifti1.py 91.22% <0%> (ø) ⬆️

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 ad26878...8c90a20. Read the comment docs.

@isolovey
Copy link
Contributor Author

isolovey commented Dec 3, 2018

Fails on testing against pre-release builds, but nothing to do with this pull request as far as I can tell.

@effigies
Copy link
Member

effigies commented Dec 3, 2018

I agree. Thanks!

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.

5 participants