Commit 038abcee authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'fix_deprecated_typecheck' into 'NIFTy_7'

Fix floating point subdtype check in `kl_energies`

See merge request !634
parents 4772fce8 c39f6602
Pipeline #102993 passed with stages
in 27 minutes and 8 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