mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: repetative len(sample) calles reintroduced
This commit is contained in:
parent
1ab16612d9
commit
5f2e33ccda
1 changed files with 3 additions and 4 deletions
|
@ -68,9 +68,8 @@ class Obs:
|
|||
already subtracted from the samples
|
||||
"""
|
||||
|
||||
sample_length = len(samples)
|
||||
if means is None and sample_length:
|
||||
if sample_length != len(names):
|
||||
if means is None and len(samples):
|
||||
if len(samples) != len(names):
|
||||
raise Exception('Length of samples and names incompatible.')
|
||||
if idl is not None:
|
||||
if len(idl) != len(names):
|
||||
|
@ -97,7 +96,7 @@ class Obs:
|
|||
self.covobs = covobs
|
||||
|
||||
self.idl = {}
|
||||
if sample_length:
|
||||
if len(samples):
|
||||
if idl is not None:
|
||||
for name, idx in sorted(zip(names, idl)):
|
||||
if isinstance(idx, range):
|
||||
|
|
Loading…
Add table
Reference in a new issue