bluecellulab 2.6.3__py3-none-any.whl → 2.6.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bluecellulab might be problematic. Click here for more details.
- bluecellulab/circuit/simulation_access.py +9 -6
- {bluecellulab-2.6.3.dist-info → bluecellulab-2.6.5.dist-info}/METADATA +2 -1
- {bluecellulab-2.6.3.dist-info → bluecellulab-2.6.5.dist-info}/RECORD +7 -7
- {bluecellulab-2.6.3.dist-info → bluecellulab-2.6.5.dist-info}/AUTHORS.txt +0 -0
- {bluecellulab-2.6.3.dist-info → bluecellulab-2.6.5.dist-info}/LICENSE +0 -0
- {bluecellulab-2.6.3.dist-info → bluecellulab-2.6.5.dist-info}/WHEEL +0 -0
- {bluecellulab-2.6.3.dist-info → bluecellulab-2.6.5.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,7 @@ import logging
|
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
from typing import Optional, Protocol
|
|
20
20
|
|
|
21
|
+
import h5py
|
|
21
22
|
import pandas as pd
|
|
22
23
|
|
|
23
24
|
from bluecellulab.circuit.config import SimulationConfig, SonataSimulationConfig
|
|
@@ -172,12 +173,14 @@ class SonataSimulationAccess:
|
|
|
172
173
|
|
|
173
174
|
def get_synapse_replay_spikes(f_name: str) -> dict:
|
|
174
175
|
"""Read the .dat file containing the spike replays."""
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
with h5py.File(f_name, 'r') as f:
|
|
177
|
+
# Access the timestamps and node_ids datasets
|
|
178
|
+
timestamps = f['/spikes/All/timestamps'][:]
|
|
179
|
+
node_ids = f['/spikes/All/node_ids'][:]
|
|
180
|
+
|
|
181
|
+
spikes = pd.DataFrame(data={'t': timestamps, 'node_id': node_ids})
|
|
182
|
+
spikes = spikes.astype({"node_id": int})
|
|
183
|
+
|
|
181
184
|
if (spikes["t"] < 0).any():
|
|
182
185
|
logger.warning("Found negative spike times... Clipping them to 0")
|
|
183
186
|
spikes["t"].clip(lower=0., inplace=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bluecellulab
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.5
|
|
4
4
|
Summary: Biologically detailed neural network simulations and analysis.
|
|
5
5
|
Author: Blue Brain Project, EPFL
|
|
6
6
|
License: Apache2.0
|
|
@@ -26,6 +26,7 @@ Requires-Dist: bluepysnap <4.0.0,>=3.0.0
|
|
|
26
26
|
Requires-Dist: pydantic <3.0.0,>=2.5.2
|
|
27
27
|
Requires-Dist: typing-extensions >=4.8.0
|
|
28
28
|
Requires-Dist: networkx >=3.1
|
|
29
|
+
Requires-Dist: h5py >=3.11.0
|
|
29
30
|
|
|
30
31
|
|banner|
|
|
31
32
|
|
|
@@ -35,7 +35,7 @@ bluecellulab/circuit/__init__.py,sha256=Khpa13nzNvDlDS2JduyoFTukEduEkWCc5ML_JwGp
|
|
|
35
35
|
bluecellulab/circuit/format.py,sha256=eYhiBIQnPnnVBmaSDymFjQprXN9QjEYKmFhb2mIS86o,1674
|
|
36
36
|
bluecellulab/circuit/iotools.py,sha256=KVE7x5LNQ4RgjNh05Q-h3Swpbs3nRFtrcWNHj62aiRI,1585
|
|
37
37
|
bluecellulab/circuit/node_id.py,sha256=gaRAW3UhbPOPsoXMHLjo3qH9iNod7YB8ZOcguWprrU4,1265
|
|
38
|
-
bluecellulab/circuit/simulation_access.py,sha256=
|
|
38
|
+
bluecellulab/circuit/simulation_access.py,sha256=jrVz6pFNAuwvuvsTq9OqeDfjIZ5akE98RBMBNDwuDVQ,7062
|
|
39
39
|
bluecellulab/circuit/synapse_properties.py,sha256=a4-Yw_f8JIR6i2YG8qhCW97TMSd_Z-aF6lp_a1wBwnM,6374
|
|
40
40
|
bluecellulab/circuit/validate.py,sha256=7EUN15u0JFFlLf389jUBqLwDOHyZdfKtoidI-xLUVYA,3593
|
|
41
41
|
bluecellulab/circuit/circuit_access/__init__.py,sha256=sgp6m5kP-pq60V1IFGUiSUR1OW01zdxXNNUJmPA8anI,201
|
|
@@ -62,9 +62,9 @@ bluecellulab/stimulus/factory.py,sha256=cjnMqFx-Y31kV1XHvkSbGI2f1OpEawU3Wg_cLqcI
|
|
|
62
62
|
bluecellulab/synapse/__init__.py,sha256=RW8XoAMXOvK7OG1nHl_q8jSEKLj9ZN4oWf2nY9HAwuk,192
|
|
63
63
|
bluecellulab/synapse/synapse_factory.py,sha256=MjUorWoMl4lFSBgQw4QS09Dzh0-LYWlCHJKYy8N-d3w,6847
|
|
64
64
|
bluecellulab/synapse/synapse_types.py,sha256=4gne-hve2vq1Lau-LAVPsfLjffVYqAYBW3kCfC7_600,16871
|
|
65
|
-
bluecellulab-2.6.
|
|
66
|
-
bluecellulab-2.6.
|
|
67
|
-
bluecellulab-2.6.
|
|
68
|
-
bluecellulab-2.6.
|
|
69
|
-
bluecellulab-2.6.
|
|
70
|
-
bluecellulab-2.6.
|
|
65
|
+
bluecellulab-2.6.5.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
|
|
66
|
+
bluecellulab-2.6.5.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
|
|
67
|
+
bluecellulab-2.6.5.dist-info/METADATA,sha256=N9CDlJekDBY0lDhztlnlbbQGcMXYsMQqn6W4VbHu104,7054
|
|
68
|
+
bluecellulab-2.6.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
69
|
+
bluecellulab-2.6.5.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
|
|
70
|
+
bluecellulab-2.6.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|