Skip to content

Commit

Permalink
BUG: Fix xarray compute value check
Browse files Browse the repository at this point in the history
The input are random integers from 0-255 -- a minimum of 1.0 will only
occur occasionally.
  • Loading branch information
thewtex authored and N-Dekker committed Aug 24, 2023
1 parent 80c50f2 commit ff64d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wrapping/Generators/Python/Tests/test_xarray.py
Expand Up @@ -124,7 +124,7 @@
data_array = itk.xarray_from_image(image, view=True)
assert data_array.name == image.GetObjectName()
# verify we can run a computation on xarray data
assert float(data_array.min().compute()) == 1.0
assert 0 <= data_array.min().compute() <= 255

data_array = xr.DataArray(arr, dims=["q", "x", "y"])
try:
Expand Down

0 comments on commit ff64d3c

Please sign in to comment.