Skip to content

Commit

Permalink
correct example and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrigno committed Aug 9, 2024
1 parent 43ca2eb commit 040790e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_lc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
]
}
],
Expand Down

0 comments on commit 040790e

Please sign in to comment.