Skip to content

Commit 846bf67

Browse files
committed
QOL Update for Masking
1 parent 1dbbe7d commit 846bf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencosmo/dataset/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def mask(self, mask: np.ndarray) -> DataIndex:
345345
raise ValueError(f"Mask dtype {mask.dtype} is not boolean")
346346

347347
if not mask.any():
348-
raise ValueError("Mask is all False")
348+
raise EmptyMaskError("Mask is all False")
349349

350350
if mask.all():
351351
return self

0 commit comments

Comments
 (0)