def _create_mri(self, volume): mri = StructuralMRI(storage_path=self.storage_path) mri.volume = volume mri.title = "NIFTI Import - " + os.path.split(self.data_file)[1] mri.dimensions_labels = ["X", "Y", "Z"] mri.weighting = "T1" self.parser.parse(mri, False) return mri
def _create_mri(self, volume, title): mri = StructuralMRI() mri.title = title mri.dimensions_labels = ["X", "Y", "Z"] mri.weighting = "T1" mri.array_data = self.parser.parse() mri.volume = volume return h5.store_complete(mri, self.storage_path)