def test_raw_data_load_data_in_memory(sample_ids, tiny_files_structure): raw = RawData(sample_ids) raw.load_data_in_memory() assert not raw.correlations assert raw.y.all().all() assert not raw.icn assert not raw.fmri_maps
def load_data(self, ids: np.ndarray, set_id: str, file_structure: Structure) -> RawData: raw = RawData(ids, set_id) raw.load_data_in_memory(fmri_path=file_structure.raw.fmri_map) return raw
def build_dataset(self, raw: RawData, out_path: Path) -> dd.DataFrame: raw.load_data_in_memory(fmri_path=structure.raw.fmri_map) ddf = self.make_fmri_features(raw.fmri_maps) return ddf
def load_data(self, ids: np.ndarray, set_id: str, file_structure: Structure) -> RawData: raw = RawData(ids, set_id) raw.load_data_in_memory(file_structure.raw.correlations) return raw