step does not work when slicing a SamplingGrid

Bug #207533 reported by Christopher Burns
2
Affects Status Importance Assigned to Milestone
NIPY
Fix Committed
Medium
Unassigned

Bug Description

If I slice a SamplingGrid using a slice(start, stop, step), the step seems to be ignored. It works fine with the img._data attr, which is a numpy.array. But the img.grid is not handling it correctly. See attached script for example.

Revision history for this message
Christopher Burns (cburns) wrote :
Changed in nipy:
importance: Undecided → Medium
Revision history for this message
Jonathan Taylor (jonathan.taylor) wrote : Re: [Bug 207533] Re: step does not work when slicing a SamplingGrid

Hi Chris,

Can you send the anatfile? The anatfile I have has a different shape....

I have a quite a few changes right now that I want to make available
soon....

I hope this will not affect others working on the code too much, but I
wanted to do what I could to clean things up.

I guess with the distributed repository I can make a new branch that
others can try out, right?

I still have to figure out how this all works...

Jonathan

Christopher Burns wrote:
> ** Attachment added: "grid_slice_bug.py"
> http://launchpadlibrarian.net/12913912/grid_slice_bug.py
>
> ** Changed in: nipy
> Importance: Undecided => Medium
>
>

Revision history for this message
Christopher Burns (cburns) wrote :

Jonathan fixed this a recent commit.

Changed in nipy:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.