From 4ff5c2d151a0d0a0475c78b7b03d3c76e6f37349 Mon Sep 17 00:00:00 2001 From: myaokai <65484599+myaokai@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:14:59 +0900 Subject: [PATCH] Update bdata.py --- bdpy/bdata/bdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdpy/bdata/bdata.py b/bdpy/bdata/bdata.py index 16603c90..adc16727 100644 --- a/bdpy/bdata/bdata.py +++ b/bdpy/bdata/bdata.py @@ -578,7 +578,7 @@ def get_metadata(self, key: str, where: Optional[str] = None) -> np.ndarray: if where is not None: # Mask the metadata array with columns specified with `where` - ind = self.metadata.get(where, 'value') is True + ind = self.metadata.get(where, 'value') == 1 md = md[ind] return md