bluecellulab 2.6.15__py3-none-any.whl → 2.6.16__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/cell/core.py +20 -21
- bluecellulab/circuit/simulation_access.py +1 -1
- bluecellulab/stimulus/circuit_stimulus_definitions.py +0 -2
- {bluecellulab-2.6.15.dist-info → bluecellulab-2.6.16.dist-info}/METADATA +1 -1
- {bluecellulab-2.6.15.dist-info → bluecellulab-2.6.16.dist-info}/RECORD +9 -9
- {bluecellulab-2.6.15.dist-info → bluecellulab-2.6.16.dist-info}/AUTHORS.txt +0 -0
- {bluecellulab-2.6.15.dist-info → bluecellulab-2.6.16.dist-info}/LICENSE +0 -0
- {bluecellulab-2.6.15.dist-info → bluecellulab-2.6.16.dist-info}/WHEEL +0 -0
- {bluecellulab-2.6.15.dist-info → bluecellulab-2.6.16.dist-info}/top_level.txt +0 -0
bluecellulab/cell/core.py
CHANGED
|
@@ -719,27 +719,26 @@ class Cell(InjectableMixin, PlottableMixin):
|
|
|
719
719
|
pre_gid = CellId(
|
|
720
720
|
source_population, int(synapse.syn_description[SynapseProperty.PRE_GID])
|
|
721
721
|
)
|
|
722
|
-
if
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
spikes_of_interest
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
self.connections[synapse_id] = connection
|
|
722
|
+
if pre_gid.id in synapse_spikes:
|
|
723
|
+
spikes_of_interest = synapse_spikes[pre_gid.id]
|
|
724
|
+
# filter spikes of interest >=stimulus.delay, <=stimulus.duration
|
|
725
|
+
spikes_of_interest = spikes_of_interest[
|
|
726
|
+
(spikes_of_interest >= stimulus.delay)
|
|
727
|
+
& (spikes_of_interest <= stimulus.duration)
|
|
728
|
+
]
|
|
729
|
+
connection = bluecellulab.Connection(
|
|
730
|
+
synapse,
|
|
731
|
+
pre_spiketrain=spikes_of_interest,
|
|
732
|
+
pre_cell=None,
|
|
733
|
+
stim_dt=self.record_dt,
|
|
734
|
+
spike_threshold=spike_threshold,
|
|
735
|
+
spike_location=spike_location,
|
|
736
|
+
)
|
|
737
|
+
logger.debug(
|
|
738
|
+
f"Added synapse replay from {pre_gid} to {self.cell_id.id}, {synapse_id}"
|
|
739
|
+
)
|
|
740
|
+
|
|
741
|
+
self.connections[synapse_id] = connection
|
|
743
742
|
|
|
744
743
|
@property
|
|
745
744
|
def info_dict(self):
|
|
@@ -172,7 +172,7 @@ class SonataSimulationAccess:
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
def get_synapse_replay_spikes(f_name: str) -> dict:
|
|
175
|
-
"""Read the .
|
|
175
|
+
"""Read the .h5 file containing the spike replays."""
|
|
176
176
|
with h5py.File(f_name, 'r') as f:
|
|
177
177
|
# Access the timestamps and node_ids datasets
|
|
178
178
|
timestamps = f['/spikes/All/timestamps'][:]
|
|
@@ -243,7 +243,6 @@ class Stimulus:
|
|
|
243
243
|
delay=stimulus_entry["delay"],
|
|
244
244
|
duration=stimulus_entry["duration"],
|
|
245
245
|
spike_file=stimulus_entry["spike_file"],
|
|
246
|
-
source=stimulus_entry["source"],
|
|
247
246
|
)
|
|
248
247
|
elif pattern == Pattern.SHOT_NOISE:
|
|
249
248
|
return ShotNoise(
|
|
@@ -331,7 +330,6 @@ class RelativeLinear(Stimulus):
|
|
|
331
330
|
@dataclass(frozen=True, config=dict(extra="forbid"))
|
|
332
331
|
class SynapseReplay(Stimulus):
|
|
333
332
|
spike_file: str
|
|
334
|
-
source: str
|
|
335
333
|
|
|
336
334
|
@field_validator("spike_file")
|
|
337
335
|
@classmethod
|
|
@@ -18,7 +18,7 @@ bluecellulab/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
18
18
|
bluecellulab/analysis/inject_sequence.py,sha256=K3166jDTikEMMfRPJvuqfC6VPdUfyK7Ua7_M9Tr6uZg,5738
|
|
19
19
|
bluecellulab/cell/__init__.py,sha256=Sbc0QOsJ8E7tSwf3q7fsXuE_SevBN6ZmoCVyyU5zfII,208
|
|
20
20
|
bluecellulab/cell/cell_dict.py,sha256=PVmZsjhZ9jp3HC-8QmdFqp-crAcVMSVeLWujcOPLlpo,1346
|
|
21
|
-
bluecellulab/cell/core.py,sha256=
|
|
21
|
+
bluecellulab/cell/core.py,sha256=2UtXXd4FA2X5A_7ljjbN4yobpMWD2FWfux67ZFND2rI,31315
|
|
22
22
|
bluecellulab/cell/injector.py,sha256=XC49VSHw78xCHzLJKO_-unnnVZAZXsYg5qbmZPx01AA,18091
|
|
23
23
|
bluecellulab/cell/plotting.py,sha256=hW5KAmaSonJ1tgR6xRrnfVe33I5mBsBUrKJQwGvAbUc,4032
|
|
24
24
|
bluecellulab/cell/random.py,sha256=FDby9BN4eJT27COwHP59bhDE2v-c6rdOKNFj3cYZTVY,1773
|
|
@@ -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=BGstSD0nkmW4AMRCztYcM6ehWj-XuznWUuG0vjs0aZI,7061
|
|
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
|
|
@@ -57,14 +57,14 @@ bluecellulab/simulation/neuron_globals.py,sha256=_8xmJPQMfCyhVn6KppK7i3jaUZaALML
|
|
|
57
57
|
bluecellulab/simulation/parallel.py,sha256=oQ_oV2EKr8gP4yF2Dq8q9MiblDyi89_wBgLzQkLV_U0,1514
|
|
58
58
|
bluecellulab/simulation/simulation.py,sha256=I__cZwV_A8I7XSefn6aJDBA_jXCI3E35-pCNCLUsnvo,6206
|
|
59
59
|
bluecellulab/stimulus/__init__.py,sha256=DgIgVaSyR-URf3JZzvO6j-tjCerzvktuK-ep8pjMRPQ,37
|
|
60
|
-
bluecellulab/stimulus/circuit_stimulus_definitions.py,sha256=
|
|
60
|
+
bluecellulab/stimulus/circuit_stimulus_definitions.py,sha256=QztVteUUeMZolPMVjx-S-KgpahnQlbfTziJsJ_wCmaw,15621
|
|
61
61
|
bluecellulab/stimulus/factory.py,sha256=XDbnqCuMCh1RdZLKvlRucMj3wkXDqy6mEda_Oh6Yqo4,19955
|
|
62
62
|
bluecellulab/synapse/__init__.py,sha256=RW8XoAMXOvK7OG1nHl_q8jSEKLj9ZN4oWf2nY9HAwuk,192
|
|
63
63
|
bluecellulab/synapse/synapse_factory.py,sha256=3y15LlaBoNJiU2KUeTkh70pyU5OYf6xQIMSBmmMPMak,6987
|
|
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.16.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
|
|
66
|
+
bluecellulab-2.6.16.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
|
|
67
|
+
bluecellulab-2.6.16.dist-info/METADATA,sha256=MQKPZ5_GTCnARQeb7CjYBHAOGsJ--Cv_n-vTzjbDcKE,7054
|
|
68
|
+
bluecellulab-2.6.16.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
69
|
+
bluecellulab-2.6.16.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
|
|
70
|
+
bluecellulab-2.6.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|