bluecellulab 1.2.4__py3-none-any.whl → 1.2.6__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.

@@ -15,7 +15,6 @@
15
15
 
16
16
  from __future__ import annotations
17
17
 
18
- import datetime
19
18
  import hashlib
20
19
  import os
21
20
  from pathlib import Path
@@ -111,45 +110,34 @@ class NeuronTemplate:
111
110
  match = re.search(r"begintemplate\s*(\S*)", template_content)
112
111
  template_name = match.group(1) # type:ignore
113
112
 
114
- neuron_versiondate_string = bluecellulab.neuron.h.nrnversion(4)
115
- neuron_versiondate = datetime.datetime.strptime(
116
- neuron_versiondate_string, "%Y-%m-%d"
117
- ).date()
118
- good_neuron_versiondate = datetime.date(2014, 3, 20)
119
-
120
- if neuron_versiondate >= good_neuron_versiondate:
121
- logger.info("This Neuron version supports renaming templates, enabling...")
122
- # add bluecellulab to the template name, so that we don't interfere with
123
- # templates load outside of bluecellulab
124
- template_name = "%s_bluecellulab" % template_name
125
- template_name = get_neuron_compliant_template_name(template_name)
126
- if template_name in cls.used_template_names:
127
- new_template_name = template_name
128
- while new_template_name in cls.used_template_names:
129
- new_template_name = "%s_x" % new_template_name
130
- new_template_name = get_neuron_compliant_template_name(
131
- new_template_name
132
- )
113
+ logger.info("This Neuron version supports renaming templates, enabling...")
114
+ # add bluecellulab to the template name, so that we don't interfere with
115
+ # templates load outside of bluecellulab
116
+ template_name = "%s_bluecellulab" % template_name
117
+ template_name = get_neuron_compliant_template_name(template_name)
118
+ if template_name in cls.used_template_names:
119
+ new_template_name = template_name
120
+ while new_template_name in cls.used_template_names:
121
+ new_template_name = "%s_x" % new_template_name
122
+ new_template_name = get_neuron_compliant_template_name(
123
+ new_template_name
124
+ )
133
125
 
134
- template_name = new_template_name
126
+ template_name = new_template_name
135
127
 
136
- cls.used_template_names.add(template_name)
137
- template_content = re.sub(
138
- r"begintemplate\s*(\S*)",
139
- "begintemplate %s" % template_name,
140
- template_content,
141
- )
142
- template_content = re.sub(
143
- r"endtemplate\s*(\S*)",
144
- "endtemplate %s" % template_name,
145
- template_content,
146
- )
128
+ cls.used_template_names.add(template_name)
129
+ template_content = re.sub(
130
+ r"begintemplate\s*(\S*)",
131
+ "begintemplate %s" % template_name,
132
+ template_content,
133
+ )
134
+ template_content = re.sub(
135
+ r"endtemplate\s*(\S*)",
136
+ "endtemplate %s" % template_name,
137
+ template_content,
138
+ )
147
139
 
148
- bluecellulab.neuron.h(template_content)
149
- else:
150
- logger.info("This Neuron version doesn't support renaming "
151
- "templates, disabling...")
152
- bluecellulab.neuron.h.load_file(template_filename)
140
+ bluecellulab.neuron.h(template_content)
153
141
 
154
142
  return template_name
155
143
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bluecellulab
3
- Version: 1.2.4
3
+ Version: 1.2.6
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
@@ -71,7 +71,7 @@ Main dependencies
71
71
  =================
72
72
 
73
73
  * `Python 3.8+ <https://www.python.org/downloads/release/python-380/>`_
74
- * `Neuron 7.4+ <http://neuron.yale.edu/>`_ (compiled with Python support)
74
+ * `Neuron 8.0.2+ <https://pypi.org/project/NEURON/>`_
75
75
 
76
76
  Installation
77
77
  ============
@@ -21,7 +21,7 @@ bluecellulab/cell/section_distance.py,sha256=ZgqFkN5gFfPxDEAIjEZEiLp_EpxLHxKWsQ_
21
21
  bluecellulab/cell/serialized_sections.py,sha256=gKM_IaDV5fZ35v3AWYN5-lyEopYsBlEu0cSJerQMJyw,1403
22
22
  bluecellulab/cell/sonata_proxy.py,sha256=NU2VxE0emQjd8HPpNgqPg4c7HD91PIME9lxXeLwfz0M,1529
23
23
  bluecellulab/cell/stimuli_generator.py,sha256=jd4fQJ1Q6QvxR_nGLo6XKxkAs8ogamcUDWf1qCQbB3g,6508
24
- bluecellulab/cell/template.py,sha256=XCWZ9R_cfFVpmpQyU6TPY6ZEBYoGk13jThGcSyBfdOA,8950
24
+ bluecellulab/cell/template.py,sha256=viNB__3NUUpb9DDkcG8LvLJU2duVogp3t69IUJKVffM,8318
25
25
  bluecellulab/cell/ballstick/__init__.py,sha256=vywMSPAeTuCcK_E9gD8UX2XD1KfKbfCVFOFnFSgznzg,450
26
26
  bluecellulab/cell/ballstick/emodel.hoc,sha256=PtgCphFV1LWc9bw9e3QMz-1ir1N5aZTM6TsYzfrS-UU,1746
27
27
  bluecellulab/cell/ballstick/morphology.asc,sha256=EO0VIRilJAwpiDP2hIevwusfvYptNYhvsu1f5GgbSQo,190
@@ -48,9 +48,9 @@ bluecellulab/synapse/__init__.py,sha256=mgrricA5NRNxntsEJFzuJTScr9MKY1FUFxCoVe4J
48
48
  bluecellulab/synapse/synapse_factory.py,sha256=SeDf5bK_yjbJzMEW7EQPPG6vyeaSt6MyzUgvu87kfrQ,3475
49
49
  bluecellulab/synapse/synapse_params.py,sha256=eAnUmTQlcYOoa7o7obkaF8G04w2C8_-4fxc8Q6v335I,2276
50
50
  bluecellulab/synapse/synapse_types.py,sha256=VZZU6SAhVpMbCk1HkZU2cZnq-h-Yxt2dMHmSawDapHw,17007
51
- bluecellulab-1.2.4.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
52
- bluecellulab-1.2.4.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
53
- bluecellulab-1.2.4.dist-info/METADATA,sha256=PJI3QilXuMun67QWeYE14f_kAJSnoj6KugLkrRaxsnE,6085
54
- bluecellulab-1.2.4.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
55
- bluecellulab-1.2.4.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
56
- bluecellulab-1.2.4.dist-info/RECORD,,
51
+ bluecellulab-1.2.6.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
52
+ bluecellulab-1.2.6.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
53
+ bluecellulab-1.2.6.dist-info/METADATA,sha256=ZKpv21XFpfoFrq0pfrtGnI3gicCmpPHRPWhigJ9ssy4,6065
54
+ bluecellulab-1.2.6.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
55
+ bluecellulab-1.2.6.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
56
+ bluecellulab-1.2.6.dist-info/RECORD,,