feat: CObs format added and complex Corr print improved. (#200)

This commit is contained in:
Fabian Joswig 2023-07-14 13:38:21 +01:00 committed by GitHub
parent b62a18643e
commit 8736d1cd3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 3 deletions

View file

@ -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()