mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
feat: Improve str conversion of numpy.ndarrays containing pyerrors Obs.
This commit is contained in:
parent
fc3657be11
commit
d7628b69d1
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ import numdifftools as nd
|
||||||
from itertools import groupby
|
from itertools import groupby
|
||||||
from .covobs import Covobs
|
from .covobs import Covobs
|
||||||
|
|
||||||
|
# Improve print output of numpy.ndarrays containing Obs objects.
|
||||||
|
np.set_printoptions(formatter={'object': lambda x: str(x)})
|
||||||
|
|
||||||
|
|
||||||
class Obs:
|
class Obs:
|
||||||
"""Class for a general observable.
|
"""Class for a general observable.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue