@@ -50,12 +50,13 @@ class AnalysisReturn(BaseModel):
5050 entities : Optional [List [Entity ]] = None
5151 order : Optional [StrictInt ] = None
5252 metadata : Optional [Dict [str , Any ]] = None
53+ point_count : Optional [StrictInt ] = Field (default = None , description = "Number of point coordinates linked to this analysis." )
5354 has_coordinates : Optional [StrictBool ] = None
5455 has_images : Optional [StrictBool ] = None
5556 has_z_maps : Optional [StrictBool ] = None
5657 has_t_maps : Optional [StrictBool ] = None
5758 has_beta_and_variance_maps : Optional [StrictBool ] = None
58- __properties : ClassVar [List [str ]] = ["name" , "description" , "weights" , "created_at" , "updated_at" , "id" , "public" , "user" , "username" , "study" , "images" , "points" , "conditions" , "table_id" , "entities" , "order" , "metadata" , "has_coordinates" , "has_images" , "has_z_maps" , "has_t_maps" , "has_beta_and_variance_maps" ]
59+ __properties : ClassVar [List [str ]] = ["name" , "description" , "weights" , "created_at" , "updated_at" , "id" , "public" , "user" , "username" , "study" , "images" , "points" , "conditions" , "table_id" , "entities" , "order" , "metadata" , "point_count" , " has_coordinates" , "has_images" , "has_z_maps" , "has_t_maps" , "has_beta_and_variance_maps" ]
5960
6061 model_config = ConfigDict (
6162 populate_by_name = True ,
@@ -158,6 +159,11 @@ def to_dict(self) -> Dict[str, Any]:
158159 if self .metadata is None and "metadata" in self .model_fields_set :
159160 _dict ['metadata' ] = None
160161
162+ # set to None if point_count (nullable) is None
163+ # and model_fields_set contains the field
164+ if self .point_count is None and "point_count" in self .model_fields_set :
165+ _dict ['point_count' ] = None
166+
161167 return _dict
162168
163169 @classmethod
@@ -187,6 +193,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
187193 "entities" : [Entity .from_dict (_item ) for _item in obj ["entities" ]] if obj .get ("entities" ) is not None else None ,
188194 "order" : obj .get ("order" ),
189195 "metadata" : obj .get ("metadata" ),
196+ "point_count" : obj .get ("point_count" ),
190197 "has_coordinates" : obj .get ("has_coordinates" ),
191198 "has_images" : obj .get ("has_images" ),
192199 "has_z_maps" : obj .get ("has_z_maps" ),
0 commit comments