Skip to content

Commit

Permalink
test_aic
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Oct 2, 2023
1 parent 3621b1b commit 2eab60e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
print_color_examples,
parse_time,
info_string,
akaike_information_criterion,
)


Expand Down Expand Up @@ -871,3 +872,10 @@ def test_parse_time(t):
def test_info_str():
info = info_string()
dinfo = info_string(detailed=True)


def test_aic():
m = tm.get_model(os.path.join(datadir, "B1855+09_NANOGrav_9yv1.gls.par"))
t = toa.get_TOAs(os.path.join(datadir, "B1855+09_NANOGrav_9yv1.tim"))

assert np.isfinite(akaike_information_criterion(m, t))

0 comments on commit 2eab60e

Please sign in to comment.