mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-04-05 07:49:48 +02:00
fix: Conversion of an array with ndim > 0 to a scalar deprecation fixed. (#186)
This commit is contained in:
parent
34fe7f44fc
commit
ca70c7571b
3 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue