Exemplo n.º 1
0
 def test_log2(self):
     simulation = Simulation(str(TEST_DATA_DIR / "simulation_config.json"))
     simulation._config["output"]["log_file"] = "unknown"
     test_obj = test_module.SpikeReport(simulation)
     with pytest.raises(BluepySnapError):
         with test_obj.log() as log:
             log.readlines()
Exemplo n.º 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")["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)
Exemplo n.º 3
0
 def setup(self):
     self.simulation = Simulation(
         str(TEST_DATA_DIR / 'simulation_config.json'))
     self.test_obj = test_module.SomaReport(self.simulation,
                                            "soma_report")["default"]
     timestamps = np.linspace(0, 0.9, 10)
     data = {0: timestamps, 1: timestamps + 1, 2: timestamps + 2}
     self.df = pd.DataFrame(data=data, index=timestamps,
                            columns=[0, 1, 2]).astype(np.float32)
Exemplo n.º 4
0
 def setup(self):
     self.simulation = Simulation(str(TEST_DATA_DIR / "simulation_config.json"))
     self.test_obj = test_module.CompartmentReport(self.simulation, "section_report")
Exemplo n.º 5
0
 def setup(self):
     self.simulation = Simulation(str(TEST_DATA_DIR / "simulation_config.json"))
     self.test_obj = test_module.FrameReport(self.simulation, "section_report")["default"]
Exemplo n.º 6
0
 def setup(self):
     self.simulation = Simulation(str(TEST_DATA_DIR / "simulation_config.json"))
     self.test_obj = test_module.SomaReport(self.simulation, "soma_report")
Exemplo n.º 7
0
 def setup(self):
     self.simulation = Simulation(
         str(TEST_DATA_DIR / 'simulation_config.json'))
     self.test_obj = test_module.FrameReport(self.simulation, "soma_report")
     self.test_obj_info = test_module.FrameReport(self.simulation,
                                                  "section_report")
Exemplo n.º 8
0
 def setup(self):
     self.simulation = Simulation(
         str(TEST_DATA_DIR / "simulation_config.json"))
     self.test_obj = test_module.SpikeReport(self.simulation)["default"]