From 0c324c5c04f4142160bc9a0705110cafe67d9473 Mon Sep 17 00:00:00 2001 From: maestroque Date: Sat, 10 Aug 2024 19:10:58 +0300 Subject: [PATCH] Fix computed_metrics attribute initialization --- physutils/physio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physutils/physio.py b/physutils/physio.py index b43556e..d61a56e 100644 --- a/physutils/physio.py +++ b/physutils/physio.py @@ -342,7 +342,7 @@ def __init__( reject=np.empty(0, dtype=int), ) self._suppdata = None if suppdata is None else np.asarray(suppdata).squeeze() - self._computed_metrics = [] + self._computed_metrics = dict() def __array__(self): return self.data