-
Notifications
You must be signed in to change notification settings - Fork 273
ENH: ArrayProxy reshape #521
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
Changes from 4 commits
4c4405b
1eb6fbe
8b41f55
c6192ad
d4e152a
49725c7
0c62d74
1626cfb
c6dfa6a
ad35340
c6950f5
e35f327
fbac7e4
8ad9c32
f4f3894
37405c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,7 +147,6 @@ def __init__(self, dataobj, affine, header=None, | |
| if self.cifti_img is None: | ||
| raise ValueError('Nifti2 header does not contain a CIFTI2 ' | ||
| 'extension') | ||
| self.cifti_img.data = self.get_data() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or could be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure the class _Cifti2AsNiftiImage(Nifti2Image):
header_class = _Cifti2AsNiftiHeader
makeable = False |
||
|
|
||
|
|
||
| class Cifti2Parser(xml.XmlParser): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One-liner docstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to allow -1 as element in shape, for compatibility with numpy array reshape.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.