Skip to content

Commit

Permalink
modify invalid test geometry for ndr
Browse files Browse the repository at this point in the history
The old geometry had its self intersection on the pixel centerpoint,
which should work, but didn't on M1 mac runners (see natcap#1562).
This modifies the geometry so that the pixel centerpoint is fully
within the geometry, which I'm hoping is more stable.
  • Loading branch information
emlys committed May 1, 2024
1 parent d3633fb commit 8309411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_ndr.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def test_masking_invalid_geometry(self):
# bowtie geometry is invalid; verify we can still create a mask.
coordinates = []
for pixel_x_offset, pixel_y_offset in [
(0, 0), (0, 1), (1, 0), (1, 1), (0, 0)]:
(0, 0), (0, 1), (1, 0.25), (1, 0.75), (0, 0)]:
coordinates.append((
default_origin[0] + default_pixel_size[0] * pixel_x_offset,
default_origin[1] + default_pixel_size[1] * pixel_y_offset
Expand Down

0 comments on commit 8309411

Please sign in to comment.