From c53a65ebd7fe2a58645f713c0fa29348cbaa2609 Mon Sep 17 00:00:00 2001 From: Luca Moretti Date: Thu, 25 Feb 2021 17:40:06 +0100 Subject: [PATCH] Updated test parameters estimator --- .../tests/estimators/test_parameters_estimator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main_package/tests/estimators/test_parameters_estimator.py b/main_package/tests/estimators/test_parameters_estimator.py index 7e79ec8..2c3fdbb 100644 --- a/main_package/tests/estimators/test_parameters_estimator.py +++ b/main_package/tests/estimators/test_parameters_estimator.py @@ -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)