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:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
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)
else:
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
......
Markdown is supported
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