def test_lightcurve_read_write(tmp_path, lc, format): lc.write(tmp_path / "tmp", format=format) lc = LightCurve.read(tmp_path / "tmp", format=format) # Check if time-related info round-trips time = lc.time assert time.scale == "utc" assert time.format == "mjd" assert_allclose(time.mjd, [55198, 55202.5])
def test_lightcurve_read_write(tmpdir, lc, format): filename = str(tmpdir / "spam") lc.write(filename, format=format) lc = LightCurve.read(filename, format=format) # Check if time-related info round-trips time = lc.time assert time.scale == "utc" assert time.format == "mjd" assert_allclose(time.mjd, [55198, 55202.5])