Skip to content

Commit

Permalink
Merge pull request #4956 from nastasha-w/markbeforeafter
Browse files Browse the repository at this point in the history
new prefix for images produced in testing: baseline_ or thisPR_
  • Loading branch information
neutrinoceros authored Jul 25, 2024
2 parents c86781b + 0263eb2 commit 2461af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt/utilities/answer_testing/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2461af6

Please sign in to comment.