We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29600ba commit bbef909Copy full SHA for bbef909
labelbox/data/annotation_types/data/tiled_image.py
@@ -114,16 +114,20 @@ class EPSGTransformer(BaseModel):
114
115
Requires as input a Point object.
116
"""
117
- class ProjectionTransformer():
+ class ProjectionTransformer(Transformer):
118
"""Custom class to help represent a Transformer that will play
119
nicely with Pydantic.
120
+
121
+ Accepts a PyProj Transformer object.
122
123
@classmethod
124
def __get_validators__(cls):
125
yield cls.validate
126
127
128
def validate(cls, v):
129
+ if not isinstance(v, Transformer):
130
+ raise Exception("Needs to be a Transformer class")
131
return v
132
133
transform_function: Optional[ProjectionTransformer] = None
0 commit comments