|
|
|
@ -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"]) |
|
|
|
|