bluecellulab 2.3.4__py3-none-any.whl → 2.3.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.

@@ -1,11 +1,11 @@
1
1
  """A simple ball and stick model."""
2
2
 
3
- import pkg_resources
3
+ import importlib_resources as resources
4
4
  from bluecellulab.cell import Cell
5
5
 
6
6
 
7
7
  def create_ball_stick() -> Cell:
8
8
  """Creates a ball and stick model by using package's hoc and asc."""
9
- hoc = pkg_resources.resource_filename("bluecellulab", "cell/ballstick/emodel.hoc")
10
- morphology = pkg_resources.resource_filename("bluecellulab", "cell/ballstick/morphology.asc")
9
+ hoc = resources.files("bluecellulab") / "cell/ballstick/emodel.hoc"
10
+ morphology = resources.files("bluecellulab") / "cell/ballstick/morphology.asc"
11
11
  return Cell(template_path=hoc, morphology_path=morphology)
bluecellulab/importer.py CHANGED
@@ -13,10 +13,10 @@
13
13
  # limitations under the License.
14
14
  """Main importer of bluecellulab."""
15
15
 
16
+ import importlib_resources as resources
16
17
  import logging
17
18
  import os
18
19
  from types import ModuleType
19
- import pkg_resources
20
20
 
21
21
  import neuron
22
22
 
@@ -62,7 +62,7 @@ def import_neurodamus(neuron: ModuleType) -> None:
62
62
  ]
63
63
 
64
64
  for hoc_file in hoc_files:
65
- hoc_file_path = pkg_resources.resource_filename("bluecellulab", f"hoc/{hoc_file}")
65
+ hoc_file_path = str(resources.files("bluecellulab") / f"hoc/{hoc_file}")
66
66
  neuron.h.load_file(hoc_file_path)
67
67
 
68
68
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bluecellulab
3
- Version: 2.3.4
3
+ Version: 2.3.5
4
4
  Summary: The Pythonic Blue Brain simulator access
5
5
  Home-page: https://github.com/BlueBrain/BlueCelluLab
6
6
  Author: Blue Brain Project, EPFL
@@ -3,7 +3,7 @@ bluecellulab/connection.py,sha256=volV2YKtmqAF7MOEJar5ldF1ARAo7k2vF9MB1NXybUY,46
3
3
  bluecellulab/dendrogram.py,sha256=w0vvv0Q169DolTX1j9dAZIvHIl4H258gAjQ1xQaNiGk,6427
4
4
  bluecellulab/exceptions.py,sha256=KIxF7s_7gPVJ07TiQ-Z1D8de7ylV74gNMhzl0339CVM,2379
5
5
  bluecellulab/graph.py,sha256=ODiQy4xjRVxtNITXeXpYnqHas0wR7gZ_aXuDAF7jMq4,3419
6
- bluecellulab/importer.py,sha256=Sf8_aWqBCp98WfNkLMhNSp4UdurEneFF5leNYRlXjAw,2852
6
+ bluecellulab/importer.py,sha256=iww5NkA0yaScFAQYx_jwE8ZsKRI9bXi0cNrJApXSwrg,2861
7
7
  bluecellulab/neuron_interpreter.py,sha256=hXig_u3T6JmEHbkV8ZblEZtX0kY80ate4VpRtANNFrM,2185
8
8
  bluecellulab/plotwindow.py,sha256=UVHzml-BB83m5Qr-YGkjR9kB-vSW8mM0Owh2j95yIaU,2721
9
9
  bluecellulab/psection.py,sha256=EgAS8IS9DcYv2xOkNISgfg_CfRc0nDfRFjvgQhyi9eY,6328
@@ -24,7 +24,7 @@ bluecellulab/cell/serialized_sections.py,sha256=UQUecO07ChRZ7xHuDp-QAQRUpUiIwROz
24
24
  bluecellulab/cell/sonata_proxy.py,sha256=dLT9mLlGVpXxj2O2lXN0g7Sq4BwroPLVdPikR2yNMv4,1529
25
25
  bluecellulab/cell/stimuli_generator.py,sha256=cJwjNwsQeEBHLjuJIFv6VBSqd9IpmbR7CuSMyotCiWc,6320
26
26
  bluecellulab/cell/template.py,sha256=EGZDS7Lb7kScwh0LqKl7BcvA6r5UdNx1_HiYo7ALbPs,8015
27
- bluecellulab/cell/ballstick/__init__.py,sha256=vywMSPAeTuCcK_E9gD8UX2XD1KfKbfCVFOFnFSgznzg,450
27
+ bluecellulab/cell/ballstick/__init__.py,sha256=v1Z8tHFfbpWShxOBdShCUaE0utoz-7rZumuNBQtNOFI,439
28
28
  bluecellulab/cell/ballstick/emodel.hoc,sha256=7WcuepK-wB9bASRvNdCwO9Woc9-SpBCFqBqCXKgjsV8,1517
29
29
  bluecellulab/cell/ballstick/morphology.asc,sha256=EO0VIRilJAwpiDP2hIevwusfvYptNYhvsu1f5GgbSQo,190
30
30
  bluecellulab/circuit/__init__.py,sha256=Khpa13nzNvDlDS2JduyoFTukEduEkWCc5ML_JwGpmZs,361
@@ -57,9 +57,9 @@ bluecellulab/stimulus/factory.py,sha256=AOby3Sp2g8BJsRccz3afazfCyysyWIgLtcliWlye
57
57
  bluecellulab/synapse/__init__.py,sha256=RW8XoAMXOvK7OG1nHl_q8jSEKLj9ZN4oWf2nY9HAwuk,192
58
58
  bluecellulab/synapse/synapse_factory.py,sha256=ZBRpjvIRyHc4hBfBvtLukLf7E2PjHhzwqGt9O4MBOTk,6862
59
59
  bluecellulab/synapse/synapse_types.py,sha256=wWVBfvPYF6g3dSoaXsjJ6QI929yWYrTh_OmauS5Y-Uk,17027
60
- bluecellulab-2.3.4.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
61
- bluecellulab-2.3.4.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
62
- bluecellulab-2.3.4.dist-info/METADATA,sha256=yHhr0rLAtPPkvKwp24sE3r0SjokOe5A9re-yT5aY7BA,6907
63
- bluecellulab-2.3.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
64
- bluecellulab-2.3.4.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
65
- bluecellulab-2.3.4.dist-info/RECORD,,
60
+ bluecellulab-2.3.5.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
61
+ bluecellulab-2.3.5.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
62
+ bluecellulab-2.3.5.dist-info/METADATA,sha256=BwAc9W74yb-OgsbeNtsax9-0Z_oa21dCtda7nGOAOUc,6907
63
+ bluecellulab-2.3.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
64
+ bluecellulab-2.3.5.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
65
+ bluecellulab-2.3.5.dist-info/RECORD,,