mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Additional check added to Corr.correlate
This commit is contained in:
parent
ac21569620
commit
7e909affcc
1 changed files with 4 additions and 1 deletions
|
@ -245,7 +245,10 @@ class Corr:
|
|||
new_content.append(None)
|
||||
else:
|
||||
if isinstance(partner, Corr):
|
||||
new_content.append(np.array([correlate(o, partner.content[x0][0]) for o in t_slice]))
|
||||
if partner.content[x0] is None:
|
||||
new_content.append(None)
|
||||
else:
|
||||
new_content.append(np.array([correlate(o, partner.content[x0][0]) for o in t_slice]))
|
||||
elif isinstance(partner, Obs):
|
||||
new_content.append(np.array([correlate(o, partner) for o in t_slice]))
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue