Skip to content

Commit

Permalink
change cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
dou-du committed Sep 2, 2022
1 parent 0fbd625 commit 42f41be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_asymmetricwell(self):
self.driver.set_window_size(1280, 720)
self.driver.find_element(By.LINK_TEXT, "Avoided Crossing in 1D Asymmetric Quantum Well").click()
time.sleep(5)
self.driver.execute_script("window.scrollTo(0, 1000)")
self.driver.execute_script("window.scrollTo(0, 800)")
self.driver.find_element(By.CSS_SELECTOR, "label:nth-child(2) > input").click()
time.sleep(10)
self.driver.save_screenshot("asymmetricwell.png")
Expand All @@ -51,7 +51,7 @@ def test_asymmetricwell(self):

hash0 = imagehash.average_hash(Image.open('asymmetricwell.png'))
hash1 = imagehash.average_hash(Image.open('test/asymmetricwell.png'))
cutoff = 5
cutoff = 1

if hash0 - hash1 < cutoff:
print('images are similar')
Expand Down

0 comments on commit 42f41be

Please sign in to comment.