From 8d9a136cd8e77ffb2f52e88212cc437e9a9fe246 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Tue, 4 Nov 2025 10:22:39 +0000 Subject: [PATCH] slight typechange in cov_Obs --- pyerrors/obs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index 45311257..04c4df79 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -653,7 +653,7 @@ class Obs: return dict(zip(labels, sizes)) def dump(self, filename: str, datatype: str="json.gz", description: str="", **kwargs): - """Dump the Obs to a file 'name' of chosen format. + """Dump the Obs to a file 'filename' of chosen datatype. Parameters ---------- @@ -1822,7 +1822,7 @@ def merge_obs(list_of_obs: list[Obs]) -> Obs: return o -def cov_Obs(means: Union[int, list[float], float, list[int]], cov: Any, name: str, grad: None=None) -> Union[Obs, list[Obs]]: +def cov_Obs(means: Union[int, list[float], float, list[int]], cov: Any, name: str, grad: Optional[Union[list, ndarray]]=None) -> Union[Obs, list[Obs]]: """Create an Obs based on mean(s) and a covariance matrix Parameters