Skip to content

Commit 9f22fe7

Browse files
03692e148e13ff4d63e81e9aee436aa53fd25ae5
1 parent 9f24391 commit 9f22fe7

12 files changed

Lines changed: 41 additions & 105 deletions

docs/MetaAnalysis.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Name | Type | Description | Notes
1313
**description** | **str** | Long form description of the meta-analysis. | [optional]
1414
**public** | **bool** | whether the meta-analysis is public or private | [optional]
1515
**tags** | [**MetaAnalysisTags**](MetaAnalysisTags.md) | | [optional]
16-
**cached_studyset_id** | **str** | The id of the studyset on neurosynth-compose (as opposed to the id of the studyset on neurostore). Multiple snapshots of the studyset can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary. | [optional]
17-
**cached_annotation_id** | **str** | The id of the annotation on neurosynth-compose (as opposed to the id of the annotation on neurostore). Multiple snapshots of the annotation can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary. | [optional]
1816
**results** | [**MetaAnalysisResults**](MetaAnalysisResults.md) | | [optional]
1917
**provenance** | **object** | | [optional]
2018
**project** | **str** | | [optional]
@@ -25,8 +23,6 @@ Name | Type | Description | Notes
2523
**cognitive_contrast_cogatlas_id** | **str** | | [optional]
2624
**cognitive_paradigm_cogatlas** | **str** | | [optional]
2725
**cognitive_paradigm_cogatlas_id** | **str** | | [optional]
28-
**cached_studyset** | **str** | | [optional] [readonly]
29-
**cached_annotation** | **str** | | [optional] [readonly]
3026
**neurostore_url** | **str** | | [optional] [readonly]
3127

3228
## Example

docs/MetaAnalysisPostBody.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Name | Type | Description | Notes
1212
**description** | **str** | Long form description of the meta-analysis. | [optional]
1313
**public** | **bool** | whether the meta-analysis is public or private | [optional]
1414
**tags** | [**MetaAnalysisTags**](MetaAnalysisTags.md) | | [optional]
15-
**cached_studyset_id** | **str** | The id of the studyset on neurosynth-compose (as opposed to the id of the studyset on neurostore). Multiple snapshots of the studyset can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary. | [optional]
16-
**cached_annotation_id** | **str** | The id of the annotation on neurosynth-compose (as opposed to the id of the annotation on neurostore). Multiple snapshots of the annotation can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary. | [optional]
1715
**results** | [**MetaAnalysisResults**](MetaAnalysisResults.md) | | [optional]
1816
**provenance** | **object** | | [optional]
1917
**project** | **str** | | [optional]
@@ -24,8 +22,6 @@ Name | Type | Description | Notes
2422
**cognitive_contrast_cogatlas_id** | **str** | | [optional]
2523
**cognitive_paradigm_cogatlas** | **str** | | [optional]
2624
**cognitive_paradigm_cogatlas_id** | **str** | | [optional]
27-
**cached_studyset** | **str** | | [optional] [readonly]
28-
**cached_annotation** | **str** | | [optional] [readonly]
2925
**neurostore_url** | **str** | | [optional] [readonly]
3026

3127
## Example

docs/MetaAnalysisReturn.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Name | Type | Description | Notes
1212
**description** | **str** | Long form description of the meta-analysis. | [optional]
1313
**public** | **bool** | whether the meta-analysis is public or private | [optional]
1414
**tags** | [**MetaAnalysisTags**](MetaAnalysisTags.md) | | [optional]
15-
**cached_studyset_id** | **str** | The id of the studyset on neurosynth-compose (as opposed to the id of the studyset on neurostore). Multiple snapshots of the studyset can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary. | [optional]
16-
**cached_annotation_id** | **str** | The id of the annotation on neurosynth-compose (as opposed to the id of the annotation on neurostore). Multiple snapshots of the annotation can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary. | [optional]
1715
**results** | [**MetaAnalysisResults**](MetaAnalysisResults.md) | | [optional]
1816
**provenance** | **object** | | [optional]
1917
**project** | **str** | | [optional]
@@ -24,8 +22,6 @@ Name | Type | Description | Notes
2422
**cognitive_contrast_cogatlas_id** | **str** | | [optional]
2523
**cognitive_paradigm_cogatlas** | **str** | | [optional]
2624
**cognitive_paradigm_cogatlas_id** | **str** | | [optional]
27-
**cached_studyset** | **str** | | [optional] [readonly]
28-
**cached_annotation** | **str** | | [optional] [readonly]
2925
**neurostore_url** | **str** | | [optional] [readonly]
3026
**id** | **str** | the identifier for the resource. | [optional]
3127
**updated_at** | **datetime** | when the resource was last modified. | [optional] [readonly]

docs/Result.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Name | Type | Description | Notes
1313
**diagnostic_table** | **str** | a text representation of a tsv that marks the contribution of each study to each particular cluster. | [optional]
1414
**cli_args** | **object** | additional parameters that were passed to the commandline tool at runtime. | [optional]
1515
**status** | **str** | | [optional]
16-
**studyset_snapshot** | **object** | JSON payload accepted for snapshot updates via PUT. | [optional]
17-
**annotation_snapshot** | **object** | JSON payload accepted for snapshot updates via PUT. | [optional]
1816

1917
## Example
2018

docs/ResultInit.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**meta_analysis_id** | **str** | | [optional]
9-
**studyset_snapshot** | **object** | | [optional]
10-
**annotation_snapshot** | **object** | | [optional]
9+
**cached_studyset** | **object** | | [optional]
10+
**cached_annotation** | **object** | | [optional]
11+
**cached_studyset_id** | **str** | ID of an existing cached studyset snapshot to link to this result. | [optional]
12+
**cached_annotation_id** | **str** | ID of an existing cached annotation snapshot to link to this result. | [optional]
1113
**cli_version** | **str** | | [optional]
1214

1315
## Example

docs/ResultReturn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Name | Type | Description | Notes
1212
**diagnostic_table** | **str** | a text representation of a tsv that marks the contribution of each study to each particular cluster. | [optional]
1313
**cli_args** | **object** | additional parameters that were passed to the commandline tool at runtime. | [optional]
1414
**status** | **str** | | [optional]
15-
**studyset_snapshot** | **object** | JSON payload accepted for snapshot updates via PUT. | [optional]
16-
**annotation_snapshot** | **object** | JSON payload accepted for snapshot updates via PUT. | [optional]
1715
**id** | **str** | the identifier for the resource. | [optional]
1816
**updated_at** | **datetime** | when the resource was last modified. | [optional] [readonly]
1917
**created_at** | **datetime** | When the resource was created. | [optional] [readonly]
2018
**user** | **str** | Who owns the resource. | [optional]
2119
**username** | **str** | | [optional] [readonly]
20+
**cached_studyset_id** | **str** | | [optional] [readonly]
21+
**cached_annotation_id** | **str** | | [optional] [readonly]
2222

2323
## Example
2424

neurosynth_compose_sdk/models/meta_analysis.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class MetaAnalysis(BaseModel):
4040
description: Optional[StrictStr] = Field(default=None, description="Long form description of the meta-analysis.")
4141
public: Optional[StrictBool] = Field(default=None, description="whether the meta-analysis is public or private")
4242
tags: Optional[MetaAnalysisTags] = None
43-
cached_studyset_id: Optional[StrictStr] = Field(default=None, description="The id of the studyset on neurosynth-compose (as opposed to the id of the studyset on neurostore). Multiple snapshots of the studyset can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary.")
44-
cached_annotation_id: Optional[StrictStr] = Field(default=None, description="The id of the annotation on neurosynth-compose (as opposed to the id of the annotation on neurostore). Multiple snapshots of the annotation can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary.")
4543
results: Optional[MetaAnalysisResults] = None
4644
provenance: Optional[Dict[str, Any]] = None
4745
project: Optional[StrictStr] = None
@@ -52,10 +50,8 @@ class MetaAnalysis(BaseModel):
5250
cognitive_contrast_cogatlas_id: Optional[StrictStr] = None
5351
cognitive_paradigm_cogatlas: Optional[StrictStr] = None
5452
cognitive_paradigm_cogatlas_id: Optional[StrictStr] = None
55-
cached_studyset: Optional[StrictStr] = None
56-
cached_annotation: Optional[StrictStr] = None
5753
neurostore_url: Optional[StrictStr] = None
58-
__properties: ClassVar[List[str]] = ["specification", "studyset", "annotation", "name", "description", "public", "tags", "cached_studyset_id", "cached_annotation_id", "results", "provenance", "project", "run_key", "snapshots", "neurostore_analysis", "cognitive_contrast_cogatlas", "cognitive_contrast_cogatlas_id", "cognitive_paradigm_cogatlas", "cognitive_paradigm_cogatlas_id", "cached_studyset", "cached_annotation", "neurostore_url"]
54+
__properties: ClassVar[List[str]] = ["specification", "studyset", "annotation", "name", "description", "public", "tags", "results", "provenance", "project", "run_key", "snapshots", "neurostore_analysis", "cognitive_contrast_cogatlas", "cognitive_contrast_cogatlas_id", "cognitive_paradigm_cogatlas", "cognitive_paradigm_cogatlas_id", "neurostore_url"]
5955

6056
model_config = ConfigDict(
6157
populate_by_name=True,
@@ -90,14 +86,10 @@ def to_dict(self) -> Dict[str, Any]:
9086
* OpenAPI `readOnly` fields are excluded.
9187
* OpenAPI `readOnly` fields are excluded.
9288
* OpenAPI `readOnly` fields are excluded.
93-
* OpenAPI `readOnly` fields are excluded.
94-
* OpenAPI `readOnly` fields are excluded.
9589
"""
9690
excluded_fields: Set[str] = set([
9791
"run_key",
9892
"snapshots",
99-
"cached_studyset",
100-
"cached_annotation",
10193
"neurostore_url",
10294
])
10395

@@ -169,16 +161,6 @@ def to_dict(self) -> Dict[str, Any]:
169161
if self.cognitive_paradigm_cogatlas_id is None and "cognitive_paradigm_cogatlas_id" in self.model_fields_set:
170162
_dict['cognitive_paradigm_cogatlas_id'] = None
171163

172-
# set to None if cached_studyset (nullable) is None
173-
# and model_fields_set contains the field
174-
if self.cached_studyset is None and "cached_studyset" in self.model_fields_set:
175-
_dict['cached_studyset'] = None
176-
177-
# set to None if cached_annotation (nullable) is None
178-
# and model_fields_set contains the field
179-
if self.cached_annotation is None and "cached_annotation" in self.model_fields_set:
180-
_dict['cached_annotation'] = None
181-
182164
# set to None if neurostore_url (nullable) is None
183165
# and model_fields_set contains the field
184166
if self.neurostore_url is None and "neurostore_url" in self.model_fields_set:
@@ -203,8 +185,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
203185
"description": obj.get("description"),
204186
"public": obj.get("public"),
205187
"tags": MetaAnalysisTags.from_dict(obj["tags"]) if obj.get("tags") is not None else None,
206-
"cached_studyset_id": obj.get("cached_studyset_id"),
207-
"cached_annotation_id": obj.get("cached_annotation_id"),
208188
"results": MetaAnalysisResults.from_dict(obj["results"]) if obj.get("results") is not None else None,
209189
"provenance": obj.get("provenance"),
210190
"project": obj.get("project"),
@@ -215,8 +195,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
215195
"cognitive_contrast_cogatlas_id": obj.get("cognitive_contrast_cogatlas_id"),
216196
"cognitive_paradigm_cogatlas": obj.get("cognitive_paradigm_cogatlas"),
217197
"cognitive_paradigm_cogatlas_id": obj.get("cognitive_paradigm_cogatlas_id"),
218-
"cached_studyset": obj.get("cached_studyset"),
219-
"cached_annotation": obj.get("cached_annotation"),
220198
"neurostore_url": obj.get("neurostore_url")
221199
})
222200
return _obj

neurosynth_compose_sdk/models/meta_analysis_post_body.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class MetaAnalysisPostBody(BaseModel):
4040
description: Optional[StrictStr] = Field(default=None, description="Long form description of the meta-analysis.")
4141
public: Optional[StrictBool] = Field(default=None, description="whether the meta-analysis is public or private")
4242
tags: Optional[MetaAnalysisTags] = None
43-
cached_studyset_id: Optional[StrictStr] = Field(default=None, description="The id of the studyset on neurosynth-compose (as opposed to the id of the studyset on neurostore). Multiple snapshots of the studyset can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary.")
44-
cached_annotation_id: Optional[StrictStr] = Field(default=None, description="The id of the annotation on neurosynth-compose (as opposed to the id of the annotation on neurostore). Multiple snapshots of the annotation can be stored on neurosynth-compose so knowing which snapshot is being referenced is necessary.")
4543
results: Optional[MetaAnalysisResults] = None
4644
provenance: Optional[Dict[str, Any]] = None
4745
project: Optional[StrictStr] = None
@@ -52,10 +50,8 @@ class MetaAnalysisPostBody(BaseModel):
5250
cognitive_contrast_cogatlas_id: Optional[StrictStr] = None
5351
cognitive_paradigm_cogatlas: Optional[StrictStr] = None
5452
cognitive_paradigm_cogatlas_id: Optional[StrictStr] = None
55-
cached_studyset: Optional[StrictStr] = None
56-
cached_annotation: Optional[StrictStr] = None
5753
neurostore_url: Optional[StrictStr] = None
58-
__properties: ClassVar[List[str]] = ["specification", "studyset", "annotation", "name", "description", "public", "tags", "cached_studyset_id", "cached_annotation_id", "results", "provenance", "project", "run_key", "snapshots", "neurostore_analysis", "cognitive_contrast_cogatlas", "cognitive_contrast_cogatlas_id", "cognitive_paradigm_cogatlas", "cognitive_paradigm_cogatlas_id", "cached_studyset", "cached_annotation", "neurostore_url"]
54+
__properties: ClassVar[List[str]] = ["specification", "studyset", "annotation", "name", "description", "public", "tags", "results", "provenance", "project", "run_key", "snapshots", "neurostore_analysis", "cognitive_contrast_cogatlas", "cognitive_contrast_cogatlas_id", "cognitive_paradigm_cogatlas", "cognitive_paradigm_cogatlas_id", "neurostore_url"]
5955

6056
model_config = ConfigDict(
6157
populate_by_name=True,
@@ -90,14 +86,10 @@ def to_dict(self) -> Dict[str, Any]:
9086
* OpenAPI `readOnly` fields are excluded.
9187
* OpenAPI `readOnly` fields are excluded.
9288
* OpenAPI `readOnly` fields are excluded.
93-
* OpenAPI `readOnly` fields are excluded.
94-
* OpenAPI `readOnly` fields are excluded.
9589
"""
9690
excluded_fields: Set[str] = set([
9791
"run_key",
9892
"snapshots",
99-
"cached_studyset",
100-
"cached_annotation",
10193
"neurostore_url",
10294
])
10395

@@ -169,16 +161,6 @@ def to_dict(self) -> Dict[str, Any]:
169161
if self.cognitive_paradigm_cogatlas_id is None and "cognitive_paradigm_cogatlas_id" in self.model_fields_set:
170162
_dict['cognitive_paradigm_cogatlas_id'] = None
171163

172-
# set to None if cached_studyset (nullable) is None
173-
# and model_fields_set contains the field
174-
if self.cached_studyset is None and "cached_studyset" in self.model_fields_set:
175-
_dict['cached_studyset'] = None
176-
177-
# set to None if cached_annotation (nullable) is None
178-
# and model_fields_set contains the field
179-
if self.cached_annotation is None and "cached_annotation" in self.model_fields_set:
180-
_dict['cached_annotation'] = None
181-
182164
# set to None if neurostore_url (nullable) is None
183165
# and model_fields_set contains the field
184166
if self.neurostore_url is None and "neurostore_url" in self.model_fields_set:
@@ -203,8 +185,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
203185
"description": obj.get("description"),
204186
"public": obj.get("public"),
205187
"tags": MetaAnalysisTags.from_dict(obj["tags"]) if obj.get("tags") is not None else None,
206-
"cached_studyset_id": obj.get("cached_studyset_id"),
207-
"cached_annotation_id": obj.get("cached_annotation_id"),
208188
"results": MetaAnalysisResults.from_dict(obj["results"]) if obj.get("results") is not None else None,
209189
"provenance": obj.get("provenance"),
210190
"project": obj.get("project"),
@@ -215,8 +195,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
215195
"cognitive_contrast_cogatlas_id": obj.get("cognitive_contrast_cogatlas_id"),
216196
"cognitive_paradigm_cogatlas": obj.get("cognitive_paradigm_cogatlas"),
217197
"cognitive_paradigm_cogatlas_id": obj.get("cognitive_paradigm_cogatlas_id"),
218-
"cached_studyset": obj.get("cached_studyset"),
219-
"cached_annotation": obj.get("cached_annotation"),
220198
"neurostore_url": obj.get("neurostore_url")
221199
})
222200
return _obj

0 commit comments

Comments
 (0)