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

Decrease number of images to test on macos #7

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion baredSC/tests/test_baredSC_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
from tempfile import NamedTemporaryFile
import os.path
import platform
import matplotlib as mpl
from matplotlib.testing.compare import compare_images
import baredSC.baredSC_2d
Expand Down Expand Up @@ -45,7 +46,11 @@ def test_baredSC_2d_1gauss_small():
f"--figure {outfig.name} " \
f"--logevidence {outfile_evid.name}".split()
baredSC.baredSC_2d.main(args)
for suffix in BARED_2D_IMAGES_SUFFIX:
if platform.system() == "Linux":
suffix_to_test = BARED_2D_IMAGES_SUFFIX
else:
suffix_to_test = ['', '_median']
for suffix in suffix_to_test:
expected_file = f'{expected}{suffix}.{extension}'
obtained_file = f'{outfig_base}{suffix}.{extension}'
res = compare_images(expected_file,
Expand Down
7 changes: 6 additions & 1 deletion baredSC/tests/test_combine_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
from tempfile import NamedTemporaryFile
import os.path
import platform
import matplotlib as mpl
from matplotlib.testing.compare import compare_images
import baredSC.combineMultipleModels_2d
Expand Down Expand Up @@ -40,7 +41,11 @@ def test_combine_2d_test1():
f"--outputs {ROOT}/2d_small_1gauss {ROOT}/2d_small_2gauss " \
f"--figure {outfig.name}".split()
baredSC.combineMultipleModels_2d.main(args)
for suffix in BARED_2D_IMAGES_SUFFIX:
if platform.system() == "Linux":
suffix_to_test = BARED_2D_IMAGES_SUFFIX
else:
suffix_to_test = ['', '_median']
for suffix in suffix_to_test:
expected_file = f'{expected}{suffix}.{extension}'
obtained_file = f'{outfig_base}{suffix}.{extension}'
res = compare_images(expected_file,
Expand Down
Loading