From 6172fa9d7a9b31aed83ebc264c1d19e4b6ea68e9 Mon Sep 17 00:00:00 2001 From: profxj Date: Mon, 21 Oct 2024 15:25:00 -0700 Subject: [PATCH] bug and tns --- frb/tests/test_scripts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frb/tests/test_scripts.py b/frb/tests/test_scripts.py index 68fc7469..58ac4330 100644 --- a/frb/tests/test_scripts.py +++ b/frb/tests/test_scripts.py @@ -11,6 +11,8 @@ from frb.scripts import pzdm_mag from frb.scripts import tns +remote_data = pytest.mark.skipif(os.getenv('FRB_GDB') is None, + reason='test requires dev suite') def test_frb_summary(): pargs = frb_summary.parser(['180924']) @@ -25,8 +27,9 @@ def test_frb_pzdm_mag(): assert np.isclose(zmax, 0.16080402010050251) assert np.isclose(z_50, 0.10050251256281408) assert np.isclose(z_mode, 0.12060301507537688) - assert np.isclose(Lmax, 0.023780306538345886) + assert np.isclose(Lmax, 0.023809, atol=1e-4) +@remote_data def test_tns(): tns.parser.units = 'deg' tns.parser.radius = 0.5