-
Notifications
You must be signed in to change notification settings - Fork 86
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
make Image basetype a dataset #694
Conversation
@ajtritt I like this if we can make it work but right now there's an error: |
Codecov Report
@@ Coverage Diff @@
## image #694 +/- ##
==========================================
- Coverage 74.76% 74.75% -0.02%
==========================================
Files 58 58
Lines 6812 6812
Branches 1399 1399
==========================================
- Hits 5093 5092 -1
Misses 1325 1325
- Partials 394 395 +1
Continue to review full report at Codecov.
|
Can datasets have datasets? Or should it be: datasets:
- neurodata_type_def: GrayscaleImage
neurodata_type_inc: Image
doc: Grayscale image. Origin in top left.
shape:
- null
- null
dims:
- 'y'
- 'x'
- neurodata_type_def: RGBImage
neurodata_type_inc: Image
doc: Color image. Origin in top left.
shape:
- null
- null
- 3
dims:
- 'y'
- 'x'
- 'R,G,B'
- neurodata_type_def: RGBAImage
neurodata_type_inc: Image
doc: Color image with transparency. Origin in top left.
shape:
- null
- null
- 4
dims:
- 'y'
- 'x'
- 'R,G,B,A' |
@bendichter yes, you are correct. I sloppily copy-pasted... I just changed it though. |
@ajtritt How do you interact with these types of datasets in |
@bendichter there is an Image base class in file.py Line 26 in b9a2ef1
It’s not fully implemented right now, but it would just need to be implemented to support the necessary attributes on the dataset, and the necessary subclasses would need to be added. |
why specify |
Sure, it probably makes more sense. But, there's no requirement about where specs are and where their API classes are. |
Motivation
make Image base type a dataset
Checklist
flake8
from the source directory.#XXX
notation whereXXX
is the issue number ?