Skip to content

Commit

Permalink
remove reference difference image
Browse files Browse the repository at this point in the history
  • Loading branch information
gerritholl committed Nov 22, 2024
1 parent b8f9b2e commit 1639149
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions satpy/tests/behave/features/steps/image_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ def setup_hooks():
def step_given_reference_image(context, composite, satellite):
"""Prepare a reference image."""
reference_image = f"reference_image_{satellite}_{composite}.png"
#context.reference_image = cv2.imread(f"./features/data/reference/{reference_image}")
context.reference_image = cv2.imread(f"{ext_data_path}/reference_images/{reference_image}")
context.reference_different_image = cv2.imread(f"./features/data/reference_different/{reference_image}")
context.satellite = satellite
context.composite = composite

Expand Down Expand Up @@ -90,7 +88,7 @@ def step_when_generate_image(context, composite, satellite):
def step_then_compare_images(context):
"""Compare test image to reference image."""
# Load the images
imageA = cv2.cvtColor(context.reference_image, cv2.COLOR_BGR2GRAY) # reference_different_image for testing only
imageA = cv2.cvtColor(context.reference_image, cv2.COLOR_BGR2GRAY)
imageB = cv2.cvtColor(context.generated_image, cv2.COLOR_BGR2GRAY)
# Ensure both images have the same dimensions
if imageA.shape != imageB.shape:
Expand Down

0 comments on commit 1639149

Please sign in to comment.