Skip to content

Commit

Permalink
Suppress ComplexWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Jan 30, 2024
1 parent 2945c19 commit 5923cc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daskms/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from itertools import product
import os
import uuid
import warnings

import dask
import dask.array as da
Expand Down Expand Up @@ -305,7 +306,9 @@ def test_dataset_add_column(ms, dtype):
ds = datasets[0]

# Create the dask array
bitflag = da.zeros_like(ds.DATA.data, dtype=dtype)
with warnings.catch_warnings():
warnings.simplefilter("ignore", np.exceptions.ComplexWarning)
bitflag = da.zeros_like(ds.DATA.data, dtype=dtype)
# Assign keyword attribute
col_kw = {
"BITFLAG": {
Expand Down

0 comments on commit 5923cc7

Please sign in to comment.