mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
same bug fixed in covariance2
This commit is contained in:
parent
0644ecf9aa
commit
a8a52beadd
1 changed files with 1 additions and 1 deletions
|
@ -1307,7 +1307,7 @@ def covariance2(obs1, obs2, correlation=False, **kwargs):
|
||||||
if r_name not in obs2.e_content[e_name]:
|
if r_name not in obs2.e_content[e_name]:
|
||||||
continue
|
continue
|
||||||
idl_d[r_name] = _merge_idx([obs1.idl[r_name], obs2.idl[r_name]])
|
idl_d[r_name] = _merge_idx([obs1.idl[r_name], obs2.idl[r_name]])
|
||||||
if idl_d[r_name] is range:
|
if isinstance(idl_d[r_name], range):
|
||||||
r_length.append(len(idl_d[r_name]))
|
r_length.append(len(idl_d[r_name]))
|
||||||
else:
|
else:
|
||||||
r_length.append((idl_d[r_name][-1] - idl_d[r_name][0] + 1))
|
r_length.append((idl_d[r_name][-1] - idl_d[r_name][0] + 1))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue