-
Notifications
You must be signed in to change notification settings - Fork 258
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
ENH: Add GIFTI to the list of known imageclasses to ease loading with .load() #316
Comments
I don't know GIFTI either I'm afraid, and as you may have seen, that code hasn't had much care since Stefan Gerhard stopped working on it. That makes me a bad person to design the API for this stuff. I will do my best to give sensible comments though. Would you be interested in taking charge of the GIFTI / CIFTI part of nibabel? |
@matthew-brett Thanks; let me talk with @satra today about GIFTI/CIFTI formats. When I have a better idea of what they are and how we're going to work with them, I'd be glad to consider it. In the meantime, I'll put something together for the OHBM hackathon, and we can figure out afterwards if it's in the right direction. Thanks as always! |
@matthew-brett I think I can manage this. Here's what I'm thinking:
|
Thanks - that would be a big contribution. Maybe we could kick off with a little sketch of what the Python API would look like, with some examples of (proposed) use? Are there a set of standard CIFTI files we could test against? http://nipy.org/nibabel/devel/add_test_data.html They could maybe go in a data repository if the license is nasty (I think it is for the HCP data): http://nipy.org/nibabel/devel/add_test_data.html#adding-as-a-submodule-to-nibabel-data It would be good to have a more freely licensed small example to add to the nibabel source repo. |
This was easy to do, but as implied above--to add these to the I believe a full GIFTI API can be completed separately from this, as adding an API is backwards-compatible with simply loading/saving and offering access to the header structure. @matthew-brett does that sound reasonable? It will help break things into more reasonable chunks for me, and allow me to more smoothly co-develop this and the |
Absolutely OK with me - as long as we keep backwards compatibility to a reasonable degree, please do choose the path that works best for you. |
So, the issue I'm having here is that The best thing in my eyes is to separate this interface related to generic file I/O into a class that both My temptation was to call this |
I have something working pretty well, using this type of logic. Even if we toss it, it was useful to get used to the innards of the system. I refactored code to First-pass refactor here: All this code depends on the |
GIFTI and CIFTI are going to be more important as more people use the Human Connectome Project (HCP) data (and as those data continue to evolve).
It would be great if GIFTI were integrated into the load/save framework. It was mentioned in
#95 that this be done.
I have time today at the OHBM hackathon to do this; @matthew-brett what do you think? I'm new to GIFTI, so I may not be realizing some issue with doing this.
This may also make some PySurfer changes I am piloting easier; see nipy/PySurfer#134
The text was updated successfully, but these errors were encountered: