Skip to content

Commit 09d7360

Browse files
committed
Cap neuron version
1 parent 5eb28c1 commit 09d7360

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ documentation = "https://mearec.readthedocs.io/"
6464
[project.optional-dependencies]
6565

6666
templates = [
67-
"neuron",
67+
"neuron<9",
6868
"LFPy"
6969
]
7070

src/MEArec/tools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,10 @@ def recursively_save_dict_contents_to_group(h5file, path, dic):
674674
elif isinstance(item, dict):
675675
recursively_save_dict_contents_to_group(h5file, path + key + "/", item)
676676
else:
677-
print(key, item)
678-
raise ValueError("Cannot save %s type" % type(item))
677+
try:
678+
h5file[path + key] = item
679+
except Exception as e:
680+
raise ValueError("Cannot save %s type" % type(item))
679681

680682

681683
def load_dict_from_hdf5(h5file, path):

0 commit comments

Comments
 (0)