fmicompbio / ez_zarr

GIve easy, high-level access to ome-zarr fileset
https://fmicompbio.github.io/ez_zarr/
MIT License
13 stars 1 forks source link

Allow integers for `msk_alpha` in `plot_image` #15

Closed silvbarb closed 3 months ago

silvbarb commented 3 months ago

Currently when passing msk_alpha = 0 we get a Type error as we enforce a float. I think we could accept integers as well

mbstadler commented 3 months ago

msk_alpha is now explicetly converted to float() when passing it to matplotlib.pyplot.imshow, which should avoid this issue (will be part of release v0.3.1). I am closing the issue now, but feel free to open it again if that should not fix your test case.