fix: Conversion of an array with ndim > 0 to a scalar deprecation fixed. (#186)

This commit is contained in:
Fabian Joswig 2023-05-31 16:59:27 +01:00 committed by GitHub
commit ca70c7571b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -850,7 +850,7 @@ def create_dobs_string(obsl, name, spec='dobs v1.0', origin='', symbol=[], who=N
for i in range(ncov):
for o in obsl:
if cname in o.covobs:
val = o.covobs[cname].grad[i]
val = o.covobs[cname].grad[i].item()
if val != 0:
ds += '%1.14e ' % (val)
else: