funkelab / gunpowder

A library to facilitate machine learning on multi-dimensional images.
https://funkelab.github.io/gunpowder/
MIT License
79 stars 56 forks source link

fix undefined padded #203

Closed mzouink closed 9 months ago

mzouink commented 9 months ago

Pre-Merge Checklist:

mzouink commented 9 months ago

@pattonw

cmalinmayor commented 9 months ago

To summarize in-person discussion: The case of a user passing in an incorrect padding mode should still raise an error, but we should make a more informative error message, rather than letting it fail upstream and raise a padding is Undefined error. Something like:


elif:
    raise ValueError("Invalid padding mode %s provided. Must be 'constant' or 'reflect'." % self.mode)```
mzouink commented 9 months ago

@cmalinmayor i set a more informative bug

cmalinmayor commented 9 months ago

Thanks @mzouink!