示例#1
0
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
示例#2
0
 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
示例#3
0
    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
示例#4
0
 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