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