From 1eacb669f3c7658318cb4d2ebbd3f9e22a13b818 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Jan 2026 15:08:34 -0800 Subject: [PATCH] update self.has_data(). check for time Addresses issue #54. ERPparam.has_data() checks for both `signal` and `time`, while ERPparamGroup.has_data() only checked for `signals`. The latter has been updated to have the same behavior. --- ERPparam/objs/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ERPparam/objs/group.py b/ERPparam/objs/group.py index 2d93816e..34606e6c 100644 --- a/ERPparam/objs/group.py +++ b/ERPparam/objs/group.py @@ -129,7 +129,7 @@ def __getitem__(self, index): def has_data(self): """Indicator for if the object contains data.""" - return True if np.any(self.signals) else False + return True if (np.any(self.signals) and np.any(self.time)) else False @property