mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
feat: CObs format added and complex Corr print improved. (#200)
This commit is contained in:
parent
b62a18643e
commit
8736d1cd3c
3 changed files with 19 additions and 3 deletions
|
@ -1297,6 +1297,16 @@ def test_f_string_obs():
|
|||
print(f"{o1:-1}")
|
||||
print(f"{o1: 8}")
|
||||
|
||||
def test_f_string_cobs():
|
||||
o_real = pe.pseudo_Obs(0.348, 0.0123, "test")
|
||||
o_imag = pe.pseudo_Obs(0.348, 0.0123, "test")
|
||||
o1 = pe.CObs(o_real, o_imag)
|
||||
print(f"{o1}")
|
||||
print(f"{o1:3}")
|
||||
print(f"{o1:+3}")
|
||||
print(f"{o1:-1}")
|
||||
print(f"{o1: 8}")
|
||||
|
||||
def test_compute_drho_fails():
|
||||
obs = pe.input.json.load_json("tests/data/compute_drho_fails.json.gz")
|
||||
obs.gm()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue