|
|
|
@ -15,9 +15,9 @@ class TestParametersEstimatior(unittest.TestCase): |
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
|
def setUpClass(cls) -> None: |
|
|
|
|
cls.read_files = glob.glob(os.path.join('./main_package/data', "*.json")) |
|
|
|
|
cls.read_files = glob.glob(os.path.join('./main_package/data/networks_and_trajectories_ternary_data_01_3.json', "*.json")) |
|
|
|
|
cls.array_indx = 0 |
|
|
|
|
cls.importer = JsonImporter(cls.read_files[0], 'samples', 'dyn.str', 'variables', 'Time', 'Name') |
|
|
|
|
cls.importer = JsonImporter('./main_package/data/networks_and_trajectories_ternary_data_01_3.json', 'samples', 'dyn.str', 'variables', 'Time', 'Name') |
|
|
|
|
cls.importer.import_data(cls.array_indx) |
|
|
|
|
cls.s1 = SamplePath(cls.importer) |
|
|
|
|
cls.s1.build_trajectories() |
|
|
|
@ -55,10 +55,10 @@ class TestParametersEstimatior(unittest.TestCase): |
|
|
|
|
|
|
|
|
|
def cim_equality_test(self, cim1, cim2): |
|
|
|
|
for r1, r2 in zip(cim1, cim2): |
|
|
|
|
self.assertTrue(np.all(np.isclose(r1, r2, 1e-01, 1e-01) is True)) |
|
|
|
|
self.assertTrue(np.all(np.isclose(r1, r2, 1e01))) |
|
|
|
|
|
|
|
|
|
def aux_import_sampled_cims(self, cims_label): |
|
|
|
|
i1 = JsonImporter(self.read_files[0], '', '', '', '', '') |
|
|
|
|
i1 = JsonImporter('./main_package/data/networks_and_trajectories_ternary_data_01_3.json', '', '', '', '', '') |
|
|
|
|
raw_data = i1.read_json_file() |
|
|
|
|
return i1.import_sampled_cims(raw_data, self.array_indx, cims_label) |
|
|
|
|
|
|
|
|
|