scverse / spatialdata

An open and interoperable data framework for spatial omics data
https://spatialdata.scverse.org/
BSD 3-Clause "New" or "Revised" License
174 stars 34 forks source link

Raster models validation should be a `classmethod`. #528

Open LucaMarconato opened 1 month ago

LucaMarconato commented 1 month ago

Currently we need to do Image2DModel().validate(), while all the parser and the non-raster validation methods are accessible as class methods: Image2DModel.parse(). We should fix this.