mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
[Fix] Fixed remaining flake8 errors
This commit is contained in:
parent
4f1606d26a
commit
d45b43e6de
2 changed files with 3 additions and 2 deletions
|
@ -14,6 +14,7 @@ from typing import Union, TYPE_CHECKING
|
|||
if TYPE_CHECKING:
|
||||
from .correlators import Corr
|
||||
|
||||
|
||||
def print_config():
|
||||
"""Print information about version of python, pyerrors and dependencies."""
|
||||
config = {"system": platform.system(),
|
||||
|
|
|
@ -1729,7 +1729,7 @@ def _covariance_element(obs1: Obs, obs2: Obs) -> Union[float, float64]:
|
|||
return dvalue
|
||||
|
||||
|
||||
def import_jackknife(jacks: ndarray, name: str, idl: Optional[list[Union[list[int], range]]]=None) -> Obs:
|
||||
def import_jackknife(jacks: ndarray, name: str, idl: Optional[list[Union[list[int], range]]]=None) -> Obs:
|
||||
"""Imports jackknife samples and returns an Obs
|
||||
|
||||
Parameters
|
||||
|
@ -1855,7 +1855,7 @@ def cov_Obs(means: Union[int, list[float], float, list[int]], cov: Any, name: st
|
|||
def _determine_gap(o: Obs, e_content: dict[str, list[str]], e_name: str) -> Union[int64, int]:
|
||||
gaps = []
|
||||
for r_name in e_content[e_name]:
|
||||
my_idl =o.idl[r_name]
|
||||
my_idl = o.idl[r_name]
|
||||
if isinstance(my_idl, range):
|
||||
gaps.append(my_idl.step)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue