2.1.1.2. rpt_dosi.db¶
2.1.1.2.1. Classes¶
Store information about a patient treatment: |
|
Class to manage metadata, providing methods to convert to/from dict and JSON. |
|
Store filenames, not paths, paths are computed on the fly. |
2.1.1.2.2. Functions¶
|
|
|
|
|
2.1.1.2.3. Module Contents¶
- class rpt_dosi.db.PatientTreatmentDatabase(filename, create=False, sync_metadata_image=False)[source]¶
Bases:
rpt_dosi.metadata.ClassWithMetaDataStore information about a patient treatment: - all cycles, all imaging timepoints - consider a hierarchy folders patient/cycle_id/timepoint_id/images - from / to json files - when store to a json file, the database folder MUST be the one of the json file
- patient/
db.json cycle1/
- tp1/
ct.nii.gz spect.nii.gz
tp2/ …
cycle2/ …
- class rpt_dosi.db.CycleTreatmentDatabase(db, cycle_id)[source]¶
Bases:
rpt_dosi.metadata.ClassWithMetaDataClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- class rpt_dosi.db.TimepointTreatmentDatabase(cycle, tp_id)[source]¶
Bases:
rpt_dosi.metadata.ClassWithMetaDataStore filenames, not paths, paths are computed on the fly. The folders are build from db/cycle/timepoint