2020 "61c12cc5-0e28-4056-999a-480cf3fb7e4c"
2121)
2222GEOEMB_SCHEMA_URL : Final [str ] = (
23- "https://raw.githubusercontent. com/geo-embeddings/embeddings-zarr-convention/refs/tags/v1 /schema.json"
23+ "https://github. com/geo-embeddings/embeddings-zarr-convention/blob/main /schema.json"
2424)
2525GEOEMB_SPEC_URL : Final [str ] = (
26- "https://github.com/geo-embeddings/embeddings-zarr-convention/blob/v1 /README.md"
26+ "https://github.com/geo-embeddings/embeddings-zarr-convention/blob/main /README.md"
2727)
2828
2929
@@ -34,7 +34,9 @@ class GeoembConventionMetadata(ZarrConventionMetadata):
3434 name : Literal ["geoemb:" ] = "geoemb:"
3535 schema_url : str = GEOEMB_SCHEMA_URL
3636 spec_url : str = GEOEMB_SPEC_URL
37- description : str = "Geoembeddings convention for geospatial embedding arrays with model provenance"
37+ description : str = (
38+ "Geoembeddings convention for geospatial embedding arrays with model provenance"
39+ )
3840
3941
4042class ChipLayout (BaseModel ):
@@ -177,21 +179,33 @@ class Geoemb(BaseModel):
177179 source_data : list [str ] = Field (alias = "geoemb:source_data" , min_length = 1 )
178180 data_type : str = Field (alias = "geoemb:data_type" )
179181 gsd : float | None = Field (None , alias = "geoemb:gsd" , exclude_if = is_none )
180- chip_layout : ChipLayout | None = Field (None , alias = "geoemb:chip_layout" , exclude_if = is_none )
182+ chip_layout : ChipLayout | None = Field (
183+ None , alias = "geoemb:chip_layout" , exclude_if = is_none
184+ )
181185 quantization : Quantization | None = Field (
182186 None , alias = "geoemb:quantization" , exclude_if = is_none
183187 )
184188 spatial_layout : Literal ["utm_zones" , "global" ] | None = Field (
185189 None , alias = "geoemb:spatial_layout" , exclude_if = is_none
186190 )
187- build_version : str | None = Field (None , alias = "geoemb:build_version" , exclude_if = is_none )
188- benchmark : list [str ] | None = Field (None , alias = "geoemb:benchmark" , exclude_if = is_none )
191+ build_version : str | None = Field (
192+ None , alias = "geoemb:build_version" , exclude_if = is_none
193+ )
194+ benchmark : list [str ] | None = Field (
195+ None , alias = "geoemb:benchmark" , exclude_if = is_none
196+ )
189197
190- model_config = {"extra" : "allow" , "populate_by_name" : True , "serialize_by_alias" : True }
198+ model_config = {
199+ "extra" : "allow" ,
200+ "populate_by_name" : True ,
201+ "serialize_by_alias" : True ,
202+ }
191203
192204 @model_validator (mode = "after" )
193205 def validate_chip_layout_required (self ) -> Geoemb :
194206 """Validate that chip_layout is provided when type is 'chip'."""
195207 if self .type == "chip" and self .chip_layout is None :
196- raise ValueError ("geoemb:chip_layout is required when geoemb:type is 'chip'" )
208+ raise ValueError (
209+ "geoemb:chip_layout is required when geoemb:type is 'chip'"
210+ )
197211 return self
0 commit comments