Skip to content

Commit 723151a

Browse files
5c2689ec3d4a2f1e18e00927fbeaf04d836abe4e
1 parent c66a0c2 commit 723151a

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

docs/AnalysisReturn.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Name | Type | Description | Notes
2424
**metadata** | **object** | | [optional]
2525
**source_id** | **str** | ID of the analysis this one was cloned from, if any. | [optional] [readonly]
2626
**point_count** | **int** | Number of point coordinates linked to this analysis. | [optional]
27-
**image_count** | **int** | Number of images linked to this analysis. | [optional]
2827
**has_coordinates** | **bool** | | [optional]
2928
**has_images** | **bool** | | [optional]
3029
**has_z_maps** | **bool** | | [optional]

neurostore_sdk/models/analysis_return.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ class AnalysisReturn(BaseModel):
5252
metadata: Optional[Dict[str, Any]] = None
5353
source_id: Optional[StrictStr] = Field(default=None, description="ID of the analysis this one was cloned from, if any.")
5454
point_count: Optional[StrictInt] = Field(default=None, description="Number of point coordinates linked to this analysis.")
55-
image_count: Optional[StrictInt] = Field(default=None, description="Number of images linked to this analysis.")
5655
has_coordinates: Optional[StrictBool] = None
5756
has_images: Optional[StrictBool] = None
5857
has_z_maps: Optional[StrictBool] = None
5958
has_t_maps: Optional[StrictBool] = None
6059
has_beta_and_variance_maps: Optional[StrictBool] = None
61-
__properties: ClassVar[List[str]] = ["name", "description", "weights", "created_at", "updated_at", "id", "public", "user", "username", "study", "images", "points", "conditions", "table_id", "entities", "order", "metadata", "source_id", "point_count", "image_count", "has_coordinates", "has_images", "has_z_maps", "has_t_maps", "has_beta_and_variance_maps"]
60+
__properties: ClassVar[List[str]] = ["name", "description", "weights", "created_at", "updated_at", "id", "public", "user", "username", "study", "images", "points", "conditions", "table_id", "entities", "order", "metadata", "source_id", "point_count", "has_coordinates", "has_images", "has_z_maps", "has_t_maps", "has_beta_and_variance_maps"]
6261

6362
model_config = ConfigDict(
6463
populate_by_name=True,
@@ -168,11 +167,6 @@ def to_dict(self) -> Dict[str, Any]:
168167
if self.point_count is None and "point_count" in self.model_fields_set:
169168
_dict['point_count'] = None
170169

171-
# set to None if image_count (nullable) is None
172-
# and model_fields_set contains the field
173-
if self.image_count is None and "image_count" in self.model_fields_set:
174-
_dict['image_count'] = None
175-
176170
return _dict
177171

178172
@classmethod
@@ -204,7 +198,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
204198
"metadata": obj.get("metadata"),
205199
"source_id": obj.get("source_id"),
206200
"point_count": obj.get("point_count"),
207-
"image_count": obj.get("image_count"),
208201
"has_coordinates": obj.get("has_coordinates"),
209202
"has_images": obj.get("has_images"),
210203
"has_z_maps": obj.get("has_z_maps"),

test/test_analysis_return.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def make_instance(self, include_optional) -> AnalysisReturn:
6262
metadata = neurostore_sdk.models.metadata.metadata(),
6363
source_id = '',
6464
point_count = 56,
65-
image_count = 56,
6665
has_coordinates = True,
6766
has_images = True,
6867
has_z_maps = True,

0 commit comments

Comments
 (0)