Skip to content

Commit

Permalink
Fixing test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinte committed Jun 1, 2024
1 parent 2220b40 commit 364a08f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_suite/test_mcfost.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ def test_image(model_name, wl):
# Read the results
image_name = model_name+"/data_"+wl+"/RT.fits.gz"

hdr = fits.getheader("test_data/"+image_name)
n_incl = hdr['NAXIS3']

# We just keep intensity
for i in range(5):
for i in range(n_incl):
image = np.nan_to_num(fits.getdata(test_dir+"/"+image_name))
image_ref = fits.getdata("test_data/"+image_name)

Expand Down

0 comments on commit 364a08f

Please sign in to comment.