From 8ed694fb280cce12daf3df5e4a79bc367f25b3d1 Mon Sep 17 00:00:00 2001 From: lmoretti96 <51789626+lmoretti96@users.noreply.github.com> Date: Sun, 28 Mar 2021 19:04:18 +0200 Subject: [PATCH] Update test_sample_importer.py --- PyCTBN/tests/utility/test_sample_importer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PyCTBN/tests/utility/test_sample_importer.py b/PyCTBN/tests/utility/test_sample_importer.py index aa9a5a7..8e96778 100644 --- a/PyCTBN/tests/utility/test_sample_importer.py +++ b/PyCTBN/tests/utility/test_sample_importer.py @@ -17,9 +17,10 @@ class TestSampleImporter(unittest.TestCase): def setUpClass(cls) -> None: with open("./PyCTBN/test_data/networks_and_trajectories_binary_data_01_3.json") as f: raw_data = json.load(f) - + + #read the samples trajectory_list_raw= raw_data[0]["samples"] - + cls.trajectory_list = [pd.DataFrame(sample) for sample in trajectory_list_raw] cls.variables= pd.DataFrame(raw_data[0]["variables"])