diff --git a/agasc/tests/test_agasc_2.py b/agasc/tests/test_agasc_2.py index 5e66e63..32da0b4 100644 --- a/agasc/tests/test_agasc_2.py +++ b/agasc/tests/test_agasc_2.py @@ -131,7 +131,7 @@ def get_ds_agasc_cone(ra, dec): cmd = "mp_get_agasc -r {!r} -d {!r} -w {!r}".format(ra, dec, TEST_RADIUS) lines = Ska.Shell.tcsh(cmd, env=ascds_env) - dat = ascii.read(lines, Reader=ascii.NoHeader, names=AGASC_COLNAMES) + dat = ascii.read(lines, format="no_header", names=AGASC_COLNAMES) ok1 = agasc.sphere_dist(ra, dec, dat["RA"], dat["DEC"]) <= TEST_RADIUS ok2 = dat["MAG_ACA"] - 3.0 * dat["MAG_ACA_ERR"] / 100.0 < 11.5 @@ -362,7 +362,7 @@ def mp_get_agascid(agasc_id): cmd = "mp_get_agascid {!r}".format(agasc_id) lines = Ska.Shell.tcsh(cmd, env=ascds_env) lines = [line for line in lines if re.match(r"^\s*\d", line)] - dat = ascii.read(lines, Reader=ascii.NoHeader, names=AGASC_COLNAMES) + dat = ascii.read(lines, format="no_header", names=AGASC_COLNAMES) return dat diff --git a/dev/profile_cache.py b/dev/profile_cache.py index 462b644..82295a7 100644 --- a/dev/profile_cache.py +++ b/dev/profile_cache.py @@ -1,4 +1,5 @@ """Profile performance of get_agasc_cone with and without cache""" + import time from pathlib import Path