The Context class needs to be added, and functionality needs to be developed.
It should reflect the protocols listed here
This class reflects the context for an individual file in a dataset, and so should be instantiated with path to the file in question and the Dataset object for that file.
Functionality that needs to be added:
I'll start work on the parts that don't require additional classes, but as suggested I'll create stubs for everything else.
@effigies does this look broadly correct?
The
Contextclass needs to be added, and functionality needs to be developed.It should reflect the protocols listed here
This class reflects the context for an individual file in a dataset, and so should be instantiated with path to the file in question and the
Datasetobject for that file.Functionality that needs to be added:
schema: Can be accessed fromDatasetobjectdataset: Passed on creationsubject: From entities? Need to developSubjectclass?path: Generated in theFilePartsobjectsize:os.path.getsize()?entities: Generated in theFilePartsobjectdatatype: Generated in theFilePartsobjectsuffix: Generated in theFilePartsobjectextension: Generated in theFilePartsobjectmodality: From datatype?sidecar: Needs to useload_sidecarand `walk_back'?associations: Need to developAssociationsclasscolumns: If the current file has.tsvextesion then parse? What to use to parse?json: If current file has.jsonextension then parse usingJSONmodule?gzip: Python has in-builtgzipmodule, not sure how to read the header specifically. Need to developGZipclass?nifti_header: Need to developNiftiHeaderclass. Can usenibabelfor most of this, will likely need guidance.ome: Need to developOmeclass. Never heard of OME before, so will need guidance.tiff: Need to developTiffclassI'll start work on the parts that don't require additional classes, but as suggested I'll create stubs for everything else.
@effigies does this look broadly correct?