def test_save_matrixes(all_dsc): all_dsc.save_datasets(f_name) dsto = DatasetContainer() dsto.read_datasets(f_name) nm = dsto.get_id_name_map() mat_ds = dsto[nm[0][0]] print(mat_ds.values)
def test_save_tree(dsc3): dsc3.save_datasets(f_name) dsto = DatasetContainer() dsto.read_datasets(f_name) assert len(dsto) == 3 dsnext = DataSet() with pytest.raises(ValueError): dsdummy = dsto[dsnext.id]
from dataset_container import DatasetContainer dsc = DatasetContainer() dsc.read_datasets('/home/thomas/.config/ConsumerCheck.pkl') nm = dsc.get_id_name_map() print(nm)