diff --git a/tests/test_lc.py b/tests/test_lc.py index e555d8f..6d2defd 100644 --- a/tests/test_lc.py +++ b/tests/test_lc.py @@ -13,7 +13,7 @@ def test_read_write(): "tests/data/JMX1_lc_Swift_J151857.0-572147_3-10.fits"] for fn in files: - lc = ogip.lc(fn) + lc = ogip.lc.rate(fn) k = fn.rfind('.') new_fn = fn[0:k] + '_ogip.' + fn[k+1:] lc.to_fits(new_fn) diff --git a/tools.ipynb b/tools.ipynb index 847fd7b..4d0dac0 100644 --- a/tools.ipynb +++ b/tools.ipynb @@ -76,8 +76,8 @@ "outputs": [], "source": [ "import ogip.lc\n", - "lc = ogip.lc('crab.lc')\n", - "lc.to_fits('crab_gip.lc')" + "lc = ogip.lc.rate('crab.lc')\n", + "lc.to_fits('crab_ogip.lc')" ] } ],