The issue was that the image was being used to set nan pixels, but if the image contains pixels exactly equal to 0, then they will be set to nan as well. So use the mask instead.
In addition:
update tests which started failing
change pytest settings to use all available cores (didn't actually speed up tests) and using info log level rather than debug
2516
The issue was that the image was being used to set nan pixels, but if the image contains pixels exactly equal to 0, then they will be set to nan as well. So use the mask instead.
In addition: