Skip to content

Commit

Permalink
Add test for order as tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
aknierim committed Oct 25, 2024
1 parent d4522f9 commit 4edfd60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ def test_polarisation_field_order(self):
# assert order = 1 and order = [1, 1] yield same images
assert_array_equal(pf, pf_ref, strict=True)

pf = self.pol.rand_polarisation_field(
shape=self.im_shape,
random_state=42,
order=(1, 1),
)
# assert order = (1, 1) and order = [1, 1] yield same images
assert_array_equal(pf, pf_ref, strict=True)

pf = self.pol.rand_polarisation_field(
shape=self.im_shape,
random_state=42,
Expand Down

0 comments on commit 4edfd60

Please sign in to comment.