mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
flake8 compliance
This commit is contained in:
parent
3381589617
commit
8731fcc615
1 changed files with 4 additions and 4 deletions
|
@ -170,17 +170,17 @@ def read_rwms(path, prefix, version='2.0', names=None, **kwargs):
|
||||||
if "idl_offsets" in kwargs:
|
if "idl_offsets" in kwargs:
|
||||||
idl_offsets = kwargs.get("idl_offsets")
|
idl_offsets = kwargs.get("idl_offsets")
|
||||||
else:
|
else:
|
||||||
idl_offsets = np.ones(nrw, dtype = int)
|
idl_offsets = np.ones(nrw, dtype=int)
|
||||||
result = []
|
result = []
|
||||||
for t in range(nrw):
|
for t in range(nrw):
|
||||||
idl = []
|
idl = []
|
||||||
for rep in range(replica):
|
for rep in range(replica):
|
||||||
idl.append(range(idl_offsets[rep],len(deltas[t][rep]+idl_offsets[rep])))
|
idl.append(range(idl_offsets[rep], len(deltas[t][rep] + idl_offsets[rep])))
|
||||||
if names is None:
|
if names is None:
|
||||||
result.append(Obs(deltas[t], rep_names, idl = idl))
|
result.append(Obs(deltas[t], rep_names, idl=idl))
|
||||||
else:
|
else:
|
||||||
print(names)
|
print(names)
|
||||||
result.append(Obs(deltas[t], names, idl = idl))
|
result.append(Obs(deltas[t], names, idl=idl))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue