spatialdata
spatialdata copied to clipboard
Check what is passed to **kwargs in the parsers to avoid silent bugs
Typos can lead to parameters being not specified inside parsers and their default value (None) can lead to nasty bugs. I would add checks that the argument passed to kwargs are actually the expected (like customization for spatial-image)
Fully agreed. These types of silent errors are super frustrating to debug.
With @melonora we discussed to drop kwargs and use named argument instead, to be fully explicit in what can be passed to the model.