bluecellulab 2.6.19__tar.gz → 2.6.21__tar.gz

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.

Files changed (102) hide show
  1. bluecellulab-2.6.21/CONTRIBUTING.rst +27 -0
  2. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/PKG-INFO +6 -1
  3. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/README.rst +5 -0
  4. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit_simulation.py +13 -14
  5. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab.egg-info/PKG-INFO +6 -1
  6. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab.egg-info/SOURCES.txt +2 -0
  7. bluecellulab-2.6.21/docs/source/contributing.rst +1 -0
  8. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/index.rst +1 -0
  9. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.compile_mod.sh +0 -0
  10. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.gitattributes +0 -0
  11. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.github/dependabot.yml +0 -0
  12. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.github/workflows/release.yml +0 -0
  13. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.github/workflows/test.yml +0 -0
  14. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.gitignore +0 -0
  15. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.gitlab-ci.yml +0 -0
  16. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.readthedocs.yml +0 -0
  17. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/.zenodo.json +0 -0
  18. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/AUTHORS.txt +0 -0
  19. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/CHANGELOG.rst +0 -0
  20. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/LICENSE +0 -0
  21. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/MANIFEST.in +0 -0
  22. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/Makefile +0 -0
  23. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/__init__.py +0 -0
  24. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/analysis/__init__.py +0 -0
  25. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/analysis/inject_sequence.py +0 -0
  26. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/__init__.py +0 -0
  27. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/ballstick/__init__.py +0 -0
  28. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/ballstick/emodel.hoc +0 -0
  29. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/ballstick/morphology.asc +0 -0
  30. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/cell_dict.py +0 -0
  31. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/core.py +0 -0
  32. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/injector.py +0 -0
  33. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/plotting.py +0 -0
  34. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/random.py +0 -0
  35. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/recording.py +0 -0
  36. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/section_distance.py +0 -0
  37. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/serialized_sections.py +0 -0
  38. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/sonata_proxy.py +0 -0
  39. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/stimuli_generator.py +0 -0
  40. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/cell/template.py +0 -0
  41. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/__init__.py +0 -0
  42. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/circuit_access/__init__.py +0 -0
  43. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/circuit_access/bluepy_circuit_access.py +0 -0
  44. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/circuit_access/definition.py +0 -0
  45. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/circuit_access/sonata_circuit_access.py +0 -0
  46. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/config/__init__.py +0 -0
  47. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/config/bluepy_simulation_config.py +0 -0
  48. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/config/definition.py +0 -0
  49. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/config/sections.py +0 -0
  50. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/config/sonata_simulation_config.py +0 -0
  51. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/format.py +0 -0
  52. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/iotools.py +0 -0
  53. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/node_id.py +0 -0
  54. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/simulation_access.py +0 -0
  55. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/synapse_properties.py +0 -0
  56. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/circuit/validate.py +0 -0
  57. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/connection.py +0 -0
  58. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/dendrogram.py +0 -0
  59. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/exceptions.py +0 -0
  60. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/graph.py +0 -0
  61. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/hoc/Cell.hoc +0 -0
  62. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/hoc/RNGSettings.hoc +0 -0
  63. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/hoc/TDistFunc.hoc +0 -0
  64. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/hoc/TStim.hoc +0 -0
  65. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/hoc/fileUtils.hoc +0 -0
  66. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/importer.py +0 -0
  67. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/neuron_interpreter.py +0 -0
  68. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/plotwindow.py +0 -0
  69. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/psection.py +0 -0
  70. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/psegment.py +0 -0
  71. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/rngsettings.py +0 -0
  72. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/simulation/__init__.py +0 -0
  73. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/simulation/neuron_globals.py +0 -0
  74. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/simulation/parallel.py +0 -0
  75. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/simulation/simulation.py +0 -0
  76. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/stimulus/__init__.py +0 -0
  77. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/stimulus/circuit_stimulus_definitions.py +0 -0
  78. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/stimulus/factory.py +0 -0
  79. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/synapse/__init__.py +0 -0
  80. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/synapse/synapse_factory.py +0 -0
  81. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/synapse/synapse_types.py +0 -0
  82. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/tools.py +0 -0
  83. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/type_aliases.py +0 -0
  84. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/utils.py +0 -0
  85. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab/verbosity.py +0 -0
  86. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab.egg-info/dependency_links.txt +0 -0
  87. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab.egg-info/requires.txt +0 -0
  88. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/bluecellulab.egg-info/top_level.txt +0 -0
  89. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/Makefile +0 -0
  90. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/images/voltage-readme.png +0 -0
  91. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/make.bat +0 -0
  92. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/requirements_docs.txt +0 -0
  93. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/_static/.gitkeep +0 -0
  94. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/api.rst +0 -0
  95. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/changelog.rst +0 -0
  96. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/compiling-mechanisms.rst +0 -0
  97. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/conf.py +0 -0
  98. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/list_of_stim.rst +0 -0
  99. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/docs/source/logo/BlueCelluLabBanner.jpg +0 -0
  100. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/pyproject.toml +0 -0
  101. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/setup.cfg +0 -0
  102. {bluecellulab-2.6.19 → bluecellulab-2.6.21}/tox.ini +0 -0
@@ -0,0 +1,27 @@
1
+ Contributing to BlueCelluLab
2
+ ============================
3
+
4
+ Thank you for taking the time to contribute!
5
+
6
+ Reporting Bugs and Suggesting Enhancements
7
+ ------------------------------------------
8
+
9
+ 1. Search existing `issues <https://github.com/BlueBrain/BlueCelluLab/issues>`_.
10
+ 2. Open a new issue with a clear title and detailed description.
11
+ 3. Include steps to reproduce, expected and actual behavior for bugs, or the current and expected behavior for enhancements.
12
+ 4. Attach any relevant screenshots or files.
13
+ 5. If applicable specify the versions of BlueCelluLab, Python and any relevant dependencies.
14
+
15
+ Pull Requests
16
+ -------------
17
+
18
+ 1. Fork the repository and create a new branch.
19
+ 2. Make your changes.
20
+ 3. Run `tox -e lint` to check the code format.
21
+ 4. Run the tests with `tox -e py3`.
22
+ 5. Add unit tests for the new code.
23
+ 6. If applicable add type hints and docstrings.
24
+ 7. If applicable update the documentation.
25
+ 8. Submit a pull request with a clear description.
26
+
27
+ Thank you for contributing to BlueCelluLab!
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bluecellulab
3
- Version: 2.6.19
3
+ Version: 2.6.21
4
4
  Summary: Biologically detailed neural network simulations and analysis.
5
5
  Author: Blue Brain Project, EPFL
6
6
  License: Apache2.0
@@ -146,6 +146,11 @@ Testing is set up using `tox`:
146
146
  tox -e py3 # runs the tests
147
147
  tox -e lint # runs the format checks
148
148
 
149
+ Contributing
150
+ ============
151
+
152
+ We welcome contributions to BlueCelluLab! Please see the `CONTRIBUTING.rst <https://github.com/BlueBrain/BlueCelluLab/blob/main/CONTRIBUTING.rst>`_ for guidelines on how to contribute.
153
+
149
154
  Funding & Acknowledgements
150
155
  ==========================
151
156
 
@@ -116,6 +116,11 @@ Testing is set up using `tox`:
116
116
  tox -e py3 # runs the tests
117
117
  tox -e lint # runs the format checks
118
118
 
119
+ Contributing
120
+ ============
121
+
122
+ We welcome contributions to BlueCelluLab! Please see the `CONTRIBUTING.rst <https://github.com/BlueBrain/BlueCelluLab/blob/main/CONTRIBUTING.rst>`_ for guidelines on how to contribute.
123
+
119
124
  Funding & Acknowledgements
120
125
  ==========================
121
126
 
@@ -26,6 +26,7 @@ import numpy as np
26
26
  import pandas as pd
27
27
  from pydantic.types import NonNegativeInt
28
28
  from typing_extensions import deprecated
29
+ from typing import Optional
29
30
 
30
31
  import bluecellulab
31
32
  from bluecellulab.cell import CellDict
@@ -116,6 +117,8 @@ class CircuitSimulation:
116
117
  self.spike_threshold = self.circuit_access.config.spike_threshold
117
118
  self.spike_location = self.circuit_access.config.spike_location
118
119
 
120
+ self.projections: list[str] = []
121
+
119
122
  condition_parameters = self.circuit_access.config.condition_parameters()
120
123
  set_global_condition_parameters(condition_parameters)
121
124
 
@@ -239,18 +242,17 @@ class CircuitSimulation:
239
242
  "pre_spike_trains")
240
243
 
241
244
  if add_projections is True:
242
- projections = self.circuit_access.config.get_all_projection_names()
245
+ self.projections = self.circuit_access.config.get_all_projection_names()
243
246
  elif add_projections is False:
244
- projections = []
247
+ self.projections = []
245
248
  else:
246
- projections = add_projections
249
+ self.projections = add_projections
247
250
 
248
251
  self._add_cells(cell_ids)
249
252
  if add_synapses:
250
253
  self._add_synapses(
251
254
  pre_gids=pre_gids,
252
- add_minis=add_minis,
253
- projections=projections)
255
+ add_minis=add_minis)
254
256
  if add_replay or interconnect_cells or pre_spike_trains:
255
257
  if add_replay and not add_synapses:
256
258
  raise BluecellulabError("add_replay option can not be used if "
@@ -357,18 +359,17 @@ class CircuitSimulation:
357
359
  ornstein_uhlenbeck_stim_count += 1
358
360
 
359
361
  def _add_synapses(
360
- self, pre_gids=None, add_minis=False, projections=None):
362
+ self, pre_gids=None, add_minis=False):
361
363
  """Instantiate all the synapses."""
362
364
  for cell_id in self.cells:
363
365
  self._add_cell_synapses(
364
366
  cell_id, pre_gids=pre_gids,
365
- add_minis=add_minis,
366
- projections=projections)
367
+ add_minis=add_minis)
367
368
 
368
369
  def _add_cell_synapses(
369
- self, cell_id: CellId, pre_gids=None, add_minis=False, projections=None
370
+ self, cell_id: CellId, pre_gids=None, add_minis=False
370
371
  ) -> None:
371
- syn_descriptions = self.get_syn_descriptions(cell_id, projections=projections)
372
+ syn_descriptions = self.get_syn_descriptions(cell_id)
372
373
 
373
374
  if pre_gids is not None:
374
375
  if self.circuit_format == CircuitFormat.SONATA:
@@ -423,12 +424,10 @@ class CircuitSimulation:
423
424
  )
424
425
  return syn_descriptions[filtered_rows]
425
426
 
426
- def get_syn_descriptions(
427
- self, cell_id: int | tuple[str, int], projections=None
428
- ) -> pd.DataFrame:
427
+ def get_syn_descriptions(self, cell_id: int | tuple[str, int]) -> pd.DataFrame:
429
428
  """Get synapse descriptions dataframe."""
430
429
  cell_id = create_cell_id(cell_id)
431
- return self.circuit_access.extract_synapses(cell_id, projections=projections)
430
+ return self.circuit_access.extract_synapses(cell_id, projections=self.projections)
432
431
 
433
432
  @staticmethod
434
433
  def merge_pre_spike_trains(*train_dicts) -> dict[CellId, np.ndarray]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bluecellulab
3
- Version: 2.6.19
3
+ Version: 2.6.21
4
4
  Summary: Biologically detailed neural network simulations and analysis.
5
5
  Author: Blue Brain Project, EPFL
6
6
  License: Apache2.0
@@ -146,6 +146,11 @@ Testing is set up using `tox`:
146
146
  tox -e py3 # runs the tests
147
147
  tox -e lint # runs the format checks
148
148
 
149
+ Contributing
150
+ ============
151
+
152
+ We welcome contributions to BlueCelluLab! Please see the `CONTRIBUTING.rst <https://github.com/BlueBrain/BlueCelluLab/blob/main/CONTRIBUTING.rst>`_ for guidelines on how to contribute.
153
+
149
154
  Funding & Acknowledgements
150
155
  ==========================
151
156
 
@@ -6,6 +6,7 @@
6
6
  .zenodo.json
7
7
  AUTHORS.txt
8
8
  CHANGELOG.rst
9
+ CONTRIBUTING.rst
9
10
  LICENSE
10
11
  MANIFEST.in
11
12
  Makefile
@@ -92,6 +93,7 @@ docs/source/api.rst
92
93
  docs/source/changelog.rst
93
94
  docs/source/compiling-mechanisms.rst
94
95
  docs/source/conf.py
96
+ docs/source/contributing.rst
95
97
  docs/source/index.rst
96
98
  docs/source/list_of_stim.rst
97
99
  docs/source/_static/.gitkeep
@@ -0,0 +1 @@
1
+ .. include:: ../../CONTRIBUTING.rst
@@ -17,5 +17,6 @@
17
17
  api.rst
18
18
  compiling-mechanisms.rst
19
19
  changelog
20
+ contributing
20
21
 
21
22
  .. |banner| image:: /logo/BlueCelluLabBanner.jpg
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes