From c995a41b8746a3c31339c40453755c703e691d17 Mon Sep 17 00:00:00 2001 From: dizcza Date: Mon, 2 Nov 2020 12:31:11 +0100 Subject: [PATCH] fixed a bug in loading hd5py data --- neo/io/hdf5io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/io/hdf5io.py b/neo/io/hdf5io.py index c665a8934..255538112 100644 --- a/neo/io/hdf5io.py +++ b/neo/io/hdf5io.py @@ -308,7 +308,7 @@ def _merge_data_objects(self, objects): return objects def _get_quantity(self, node): - value = node.value + value = node[()] unit_str = [x for x in node.attrs.keys() if "unit" in x][0].split("__")[1] units = getattr(pq, unit_str) return value * units