Skip to content

Commit

Permalink
Minor bug fixes before 2.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgl committed Mar 15, 2024
1 parent 8d238c7 commit 7389b02
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dendrify/neuronmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ def _set_properties(self, cm=None, gl=None, r_axial=None, v_rest=None,
# update all other params if provided
if not comp.dimensionless and any(params.values()):
for param, value in params.items():
# omit spine_factor for Soma
if param == 'spine_factor' and isinstance(comp, Soma):
continue
if value:
setattr(comp._ephys_object, param, value)
# make sure to initialize area factors if not provided
Expand Down Expand Up @@ -391,7 +394,8 @@ def make_neurongroup(self,
try:
ap_reset = Synapses(group, group,
on_pre=second_reset,
delay=spike_width)
delay=spike_width,
namespace=self.parameters)
ap_reset.connect(j='i')

except Exception:
Expand Down
6 changes: 6 additions & 0 deletions docs_sphinx/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release notes
=============

Version 2.1.2
-------------
* Fixed a bug that could cause the wrong estimation of a somatic
compartment's surface area.
* Other minor improvements.

Version 2.1.1
-------------
* A minor release to fix some bugs introduced by VS code auto-formatting.
Expand Down
2 changes: 1 addition & 1 deletion docs_sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
project = 'Dendrify'
copyright = '2024, Michalis Pagkalos'
author = 'Michalis Pagkalos'
release = '2.1.1'
release = '2.1.2'


# -- General configuration -----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

VERSION = '2.1.1'
VERSION = '2.1.2'
DESCRIPTION = 'A package for adding dendrites to SNNs'
with open("README.rst") as f:
LONG_DESCRIPTION = f.read()
Expand Down

0 comments on commit 7389b02

Please sign in to comment.