mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-11-29 20:46:54 +01:00
slight typechange in cov_Obs
This commit is contained in:
parent
51b9d2fb11
commit
8d9a136cd8
1 changed files with 2 additions and 2 deletions
|
|
@ -653,7 +653,7 @@ class Obs:
|
||||||
return dict(zip(labels, sizes))
|
return dict(zip(labels, sizes))
|
||||||
|
|
||||||
def dump(self, filename: str, datatype: str="json.gz", description: str="", **kwargs):
|
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
|
Parameters
|
||||||
----------
|
----------
|
||||||
|
|
@ -1822,7 +1822,7 @@ def merge_obs(list_of_obs: list[Obs]) -> Obs:
|
||||||
return o
|
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
|
"""Create an Obs based on mean(s) and a covariance matrix
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue