From 0263eb28079a06ee6358b42217515581b2af6089 Mon Sep 17 00:00:00 2001 From: nastasha-w <35771073+nastasha-w@users.noreply.github.com> Date: Wed, 24 Jul 2024 12:00:42 -0500 Subject: [PATCH] add prefixes marking old and new test images --- yt/utilities/answer_testing/framework.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt/utilities/answer_testing/framework.py b/yt/utilities/answer_testing/framework.py index 37358573dd9..ad2db01c4f3 100644 --- a/yt/utilities/answer_testing/framework.py +++ b/yt/utilities/answer_testing/framework.py @@ -776,9 +776,9 @@ def compare(self, new_result, old_result): def dump_images(new_result, old_result, decimals=10): - tmpfd, old_image = tempfile.mkstemp(suffix=".png") + tmpfd, old_image = tempfile.mkstemp(prefix="baseline_", suffix=".png") os.close(tmpfd) - tmpfd, new_image = tempfile.mkstemp(suffix=".png") + tmpfd, new_image = tempfile.mkstemp(prefix="thisPR_", suffix=".png") os.close(tmpfd) image_writer.write_projection(new_result, new_image) image_writer.write_projection(old_result, old_image)