matthew-brett / xibabel

Piloting a new image object for neuroimaging based on XArray
BSD 2-Clause "Simplified" License
6 stars 0 forks source link

MRG: converting from Ximg to Nifti #18

Closed matthew-brett closed 4 months ago

matthew-brett commented 5 months ago

Have image manipulation down, but need some basic work to get header data from attrs, and less basic work to calculate affine in the general case.

matthew-brett commented 4 months ago

@effigies - would you mind taking a look at this? It implements the version of your suggestion over at https://github.com/pydata/xarray/discussions/8897#discussioncomment-8988009 . See the with_updated_affines method in the xi accessor.

matthew-brett commented 4 months ago

@ivanov @effigies - do either of you have any idea what is going on here: https://github.com/matthew-brett/xibabel/actions/runs/8558868993/job/23454329975#step:10:13 ? The tests run fine on macOS and Linux, and they run fine on a local Windows machine as well. There aren't any stray unicode characters that I can detect, I've retyped the line with no recorded changes in git diff, now I'm a bit stuck.