From 90832ce059bbfdb089394f2cf97362ef0efc2c25 Mon Sep 17 00:00:00 2001 From: Thomas Chamberlin Date: Tue, 21 Nov 2023 11:11:08 -0500 Subject: [PATCH] Revert "Add some printouts to debug platform-dependent precision" --- src/dysh/spectra/tests/test_scan.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dysh/spectra/tests/test_scan.py b/src/dysh/spectra/tests/test_scan.py index 69720f5b..51ab56c3 100644 --- a/src/dysh/spectra/tests/test_scan.py +++ b/src/dysh/spectra/tests/test_scan.py @@ -1,7 +1,10 @@ +import pathlib + import numpy as np import pytest from astropy.io import fits +import dysh from dysh.fits import gbtfitsload @@ -118,14 +121,10 @@ def test_blank_integrations(self, data_dir): # The system temperature is different because of the squared averaging. assert abs(ps_sb[0].calibrated(0).meta["TSYS"] - ta1[0].meta["TSYS"]) < 5e-16 assert (ps_sb[0].calibrated(0).meta["EXPOSURE"] - ta1[0].meta["EXPOSURE"]) == 0.0 - - arr = abs(ps_sb[0].calibrated(0).flux.value - ta1[0].flux.value) < 5e-16 - print(f"test_blank_integrations: type of arr: {arr.dtype}") - print(f"test_blank_integrations: arr: {arr}") # Check if the time averaged data matches that from the first integration. # assert np.all(abs(ps_sb[0].calibrated(0).flux.value - ta1[0].flux.value) < 2e-19) # Set to 5E-16 because Windows OS tests fail below that. Need to understand why. - assert np.all(arr) + assert np.all(abs(ps_sb[0].calibrated(0).flux.value - ta1[0].flux.value) < 5e-16) class TestSubBeamNod: