Commit c39f6602 authored by Lukas Platz's avatar Lukas Platz
Browse files

replace np.float with np.floating in type check

`np.float` was deprecated in Numpy 1.20:
parent 4772fce8
Pipeline #102977 passed with stages
in 13 minutes and 40 seconds
......@@ -227,9 +227,9 @@ class _GeoMetricSampler:
# Check domain dtype
dts = H._prior._met._dtype
if isinstance(H.domain, DomainTuple):
real = np.issubdtype(dts, np.float)
real = np.issubdtype(dts, np.floating)
real = all([np.issubdtype(dts[kk], np.float) for kk in dts.keys()])
real = all([np.issubdtype(dts[kk], np.floating) for kk in dts.keys()])
if not real:
raise ValueError("_GeoMetricSampler only supports real valued latent DOFs.")
# /Check domain dtype
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment