Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full test suite #88

Merged
merged 5 commits into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test_suite/test_mcfost.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# If running on CI, only test ref3.0
if os.environ.get('CI', None) == 'true':
model_list = ["ref3.0"]#["ref3.0","ref3.0_multi","debris"]
model_list = ["discF_00500"]#["ref3.0","ref3.0_multi","debris"]

wl_list = ["1.0","10","100","1000"]
wl_list_pola = ["1.0","1000"]
Expand Down Expand Up @@ -124,6 +124,7 @@ def test_image(model_name, wl):
# Run the mcfost model
filename = "test_data/"+model_name+"/"+model_name+".para"
if (model_name == "discF_00500"):
pytest.skip("No image")
opt=" -phantom test_data/"+model_name+"/"+model_name+" -not_random_Voronoi"
else:
opt=""
Expand All @@ -149,6 +150,9 @@ def test_image(model_name, wl):
def test_pola(model_name, wl):
# Re-use previous calculation

if (model_name == "discF_00500"):
pytest.skip("No pola")

# Read the results
image_name = model_name+"/data_"+wl+"/RT.fits.gz"
image = fits.getdata(test_dir+"/"+image_name)
Expand All @@ -175,6 +179,9 @@ def test_pola(model_name, wl):
def test_contrib(model_name, wl):
# Re-use previous calculation

if (model_name == "discF_00500"):
pytest.skip("No pola")

# Read the results
image_name = model_name+"/data_"+wl+"/RT.fits.gz"
image = fits.getdata(test_dir+"/"+image_name)
Expand Down
Loading