Beispiel #1
0
 def setup(self):
     self.simulation = Simulation(str(TEST_DATA_DIR / "simulation_config.json"))
     self.test_obj = test_module.CompartmentReport(self.simulation, "section_report")["default"]
     timestamps = np.linspace(0, 0.9, 10)
     data = np.array([np.arange(7) + j * 0.1 for j in range(10)], dtype=np.float32)
     ids = [(0, 0), (0, 1), (1, 0), (1, 1), (2, 0), (2, 1), (2, 1)]
     self.df = pd.DataFrame(data=data, columns=pd.MultiIndex.from_tuples(ids), index=timestamps)
Beispiel #2
0
 def setup(self):
     self.simulation = Simulation(str(TEST_DATA_DIR / "simulation_config.json"))
     self.test_obj = test_module.CompartmentReport(self.simulation, "section_report")