Skip to content

Commit 659f623

Browse files
b0f30a36b5375e3ca102808e3db740a18468a770
1 parent 16d5791 commit 659f623

File tree

72 files changed

+4562
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+4562
-4
lines changed

Diff for: .openapi-generator/FILES

+66
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,70 @@ setup.cfg
150150
setup.py
151151
test-requirements.txt
152152
test/__init__.py
153+
test/test_annotation.py
154+
test/test_annotation_list.py
155+
test/test_annotation_post_body.py
156+
test/test_annotation_return.py
157+
test/test_annotation_update.py
158+
test/test_annotation_update_all_of.py
159+
test/test_annotations_api.py
160+
test/test_compose_api.py
161+
test/test_corrector.py
162+
test/test_default_api.py
163+
test/test_estimator.py
164+
test/test_get_api.py
165+
test/test_meta_analyses_api.py
166+
test/test_meta_analyses_get400_response.py
167+
test/test_meta_analysis.py
168+
test/test_meta_analysis_annotation.py
169+
test/test_meta_analysis_list.py
170+
test/test_meta_analysis_post_body.py
171+
test/test_meta_analysis_results.py
172+
test/test_meta_analysis_return.py
173+
test/test_meta_analysis_specification.py
174+
test/test_meta_analysis_studyset.py
175+
test/test_neurostore_analysis.py
176+
test/test_neurostore_study.py
177+
test/test_neurostore_study_list.py
178+
test/test_neurostore_study_return.py
179+
test/test_neurovault_api.py
180+
test/test_neurovault_collection.py
181+
test/test_neurovault_collection_files.py
182+
test/test_neurovault_collection_return.py
183+
test/test_neurovault_file.py
184+
test/test_neurovault_file_list.py
185+
test/test_neurovault_file_return.py
186+
test/test_neurovault_list.py
187+
test/test_post_api.py
188+
test/test_project.py
189+
test/test_project_list.py
190+
test/test_project_meta_analyses.py
191+
test/test_project_return.py
192+
test/test_projects_api.py
193+
test/test_put_api.py
194+
test/test_read_only.py
195+
test/test_result.py
196+
test/test_result_init.py
197+
test/test_result_list.py
198+
test/test_result_list_results.py
199+
test/test_result_return.py
200+
test/test_specification.py
201+
test/test_specification_conditions.py
202+
test/test_specification_list.py
203+
test/test_specification_post_body.py
204+
test/test_specification_return.py
205+
test/test_specifications_api.py
206+
test/test_studyset.py
207+
test/test_studyset_list.py
208+
test/test_studyset_post_body.py
209+
test/test_studyset_reference.py
210+
test/test_studyset_reference_list.py
211+
test/test_studyset_reference_return.py
212+
test/test_studyset_reference_snapshots_inner.py
213+
test/test_studyset_return.py
214+
test/test_studysets_api.py
215+
test/test_user.py
216+
test/test_user_list.py
217+
test/test_user_return.py
218+
test/test_users_api.py
153219
tox.ini

Diff for: docs/Project.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**public** | **bool** | whether the project is public or private | [optional]
1212
**neurostore_study** | [**NeurostoreStudy**](NeurostoreStudy.md) | | [optional]
1313
**neurostore_url** | **str** | | [optional]
14+
**draft** | **bool** | | [optional] [readonly]
1415

1516
## Example
1617

Diff for: docs/ProjectReturn.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**public** | **bool** | whether the project is public or private | [optional]
1717
**neurostore_study** | [**NeurostoreStudy**](NeurostoreStudy.md) | | [optional]
1818
**neurostore_url** | **str** | | [optional]
19+
**draft** | **bool** | | [optional] [readonly]
1920

2021
## Example
2122

Diff for: neurosynth_compose_sdk/models/project.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class Project(BaseModel):
3535
public: Optional[StrictBool] = Field(None, description="whether the project is public or private")
3636
neurostore_study: Optional[NeurostoreStudy] = None
3737
neurostore_url: Optional[StrictStr] = None
38-
__properties = ["provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url"]
38+
draft: Optional[StrictBool] = None
39+
__properties = ["provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url", "draft"]
3940

4041
class Config:
4142
"""Pydantic configuration"""
@@ -59,6 +60,7 @@ def to_dict(self):
5960
"""Returns the dictionary representation of the model using alias"""
6061
_dict = self.dict(by_alias=True,
6162
exclude={
63+
"draft",
6264
},
6365
exclude_none=True)
6466
# override the default output from pydantic by calling `to_dict()` of meta_analyses
@@ -105,7 +107,8 @@ def from_dict(cls, obj: dict) -> Project:
105107
"description": obj.get("description"),
106108
"public": obj.get("public"),
107109
"neurostore_study": NeurostoreStudy.from_dict(obj.get("neurostore_study")) if obj.get("neurostore_study") is not None else None,
108-
"neurostore_url": obj.get("neurostore_url")
110+
"neurostore_url": obj.get("neurostore_url"),
111+
"draft": obj.get("draft")
109112
})
110113
return _obj
111114

Diff for: neurosynth_compose_sdk/models/project_return.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class ProjectReturn(BaseModel):
4040
public: Optional[StrictBool] = Field(None, description="whether the project is public or private")
4141
neurostore_study: Optional[NeurostoreStudy] = None
4242
neurostore_url: Optional[StrictStr] = None
43-
__properties = ["id", "updated_at", "created_at", "user", "username", "provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url"]
43+
draft: Optional[StrictBool] = None
44+
__properties = ["id", "updated_at", "created_at", "user", "username", "provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url", "draft"]
4445

4546
class Config:
4647
"""Pydantic configuration"""
@@ -67,6 +68,7 @@ def to_dict(self):
6768
"updated_at",
6869
"created_at",
6970
"username",
71+
"draft",
7072
},
7173
exclude_none=True)
7274
# override the default output from pydantic by calling `to_dict()` of meta_analyses
@@ -133,7 +135,8 @@ def from_dict(cls, obj: dict) -> ProjectReturn:
133135
"description": obj.get("description"),
134136
"public": obj.get("public"),
135137
"neurostore_study": NeurostoreStudy.from_dict(obj.get("neurostore_study")) if obj.get("neurostore_study") is not None else None,
136-
"neurostore_url": obj.get("neurostore_url")
138+
"neurostore_url": obj.get("neurostore_url"),
139+
"draft": obj.get("draft")
137140
})
138141
return _obj
139142

Diff for: test/__init__.py

Whitespace-only changes.

Diff for: test/test_annotation.py

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# coding: utf-8
2+
3+
"""
4+
Analysis Specification for Meta-analysis
5+
6+
api to create a meta-analysis specification # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
"""
14+
15+
16+
import unittest
17+
import datetime
18+
19+
import neurosynth_compose_sdk
20+
from neurosynth_compose_sdk.models.annotation import Annotation # noqa: E501
21+
from neurosynth_compose_sdk.rest import ApiException
22+
23+
class TestAnnotation(unittest.TestCase):
24+
"""Annotation unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def make_instance(self, include_optional):
33+
"""Test Annotation
34+
include_option is a boolean, when False only required
35+
params are included, when True both required and
36+
optional params are included """
37+
# uncomment below to create an instance of `Annotation`
38+
"""
39+
model = neurosynth_compose_sdk.models.annotation.Annotation() # noqa: E501
40+
if include_optional :
41+
return Annotation(
42+
neurostore_id = '',
43+
snapshot = None,
44+
studyset = '',
45+
neurostore_url = ''
46+
)
47+
else :
48+
return Annotation(
49+
)
50+
"""
51+
52+
def testAnnotation(self):
53+
"""Test Annotation"""
54+
# inst_req_only = self.make_instance(include_optional=False)
55+
# inst_req_and_optional = self.make_instance(include_optional=True)
56+
57+
if __name__ == '__main__':
58+
unittest.main()

Diff for: test/test_annotation_list.py

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# coding: utf-8
2+
3+
"""
4+
Analysis Specification for Meta-analysis
5+
6+
api to create a meta-analysis specification # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
"""
14+
15+
16+
import unittest
17+
import datetime
18+
19+
import neurosynth_compose_sdk
20+
from neurosynth_compose_sdk.models.annotation_list import AnnotationList # noqa: E501
21+
from neurosynth_compose_sdk.rest import ApiException
22+
23+
class TestAnnotationList(unittest.TestCase):
24+
"""AnnotationList unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def make_instance(self, include_optional):
33+
"""Test AnnotationList
34+
include_option is a boolean, when False only required
35+
params are included, when True both required and
36+
optional params are included """
37+
# uncomment below to create an instance of `AnnotationList`
38+
"""
39+
model = neurosynth_compose_sdk.models.annotation_list.AnnotationList() # noqa: E501
40+
if include_optional :
41+
return AnnotationList(
42+
results = [
43+
null
44+
],
45+
metadata = neurosynth_compose_sdk.models.metadata.metadata()
46+
)
47+
else :
48+
return AnnotationList(
49+
)
50+
"""
51+
52+
def testAnnotationList(self):
53+
"""Test AnnotationList"""
54+
# inst_req_only = self.make_instance(include_optional=False)
55+
# inst_req_and_optional = self.make_instance(include_optional=True)
56+
57+
if __name__ == '__main__':
58+
unittest.main()

Diff for: test/test_annotation_post_body.py

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# coding: utf-8
2+
3+
"""
4+
Analysis Specification for Meta-analysis
5+
6+
api to create a meta-analysis specification # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
"""
14+
15+
16+
import unittest
17+
import datetime
18+
19+
import neurosynth_compose_sdk
20+
from neurosynth_compose_sdk.models.annotation_post_body import AnnotationPostBody # noqa: E501
21+
from neurosynth_compose_sdk.rest import ApiException
22+
23+
class TestAnnotationPostBody(unittest.TestCase):
24+
"""AnnotationPostBody unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def make_instance(self, include_optional):
33+
"""Test AnnotationPostBody
34+
include_option is a boolean, when False only required
35+
params are included, when True both required and
36+
optional params are included """
37+
# uncomment below to create an instance of `AnnotationPostBody`
38+
"""
39+
model = neurosynth_compose_sdk.models.annotation_post_body.AnnotationPostBody() # noqa: E501
40+
if include_optional :
41+
return AnnotationPostBody(
42+
cached_studyset_id = '',
43+
neurostore_id = '',
44+
snapshot = neurosynth_compose_sdk.models.snapshot.snapshot(),
45+
studyset = '',
46+
neurostore_url = ''
47+
)
48+
else :
49+
return AnnotationPostBody(
50+
cached_studyset_id = '',
51+
)
52+
"""
53+
54+
def testAnnotationPostBody(self):
55+
"""Test AnnotationPostBody"""
56+
# inst_req_only = self.make_instance(include_optional=False)
57+
# inst_req_and_optional = self.make_instance(include_optional=True)
58+
59+
if __name__ == '__main__':
60+
unittest.main()

Diff for: test/test_annotation_return.py

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# coding: utf-8
2+
3+
"""
4+
Analysis Specification for Meta-analysis
5+
6+
api to create a meta-analysis specification # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
"""
14+
15+
16+
import unittest
17+
import datetime
18+
19+
import neurosynth_compose_sdk
20+
from neurosynth_compose_sdk.models.annotation_return import AnnotationReturn # noqa: E501
21+
from neurosynth_compose_sdk.rest import ApiException
22+
23+
class TestAnnotationReturn(unittest.TestCase):
24+
"""AnnotationReturn unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def make_instance(self, include_optional):
33+
"""Test AnnotationReturn
34+
include_option is a boolean, when False only required
35+
params are included, when True both required and
36+
optional params are included """
37+
# uncomment below to create an instance of `AnnotationReturn`
38+
"""
39+
model = neurosynth_compose_sdk.models.annotation_return.AnnotationReturn() # noqa: E501
40+
if include_optional :
41+
return AnnotationReturn(
42+
neurostore_id = '',
43+
snapshot = neurosynth_compose_sdk.models.snapshot.snapshot(),
44+
studyset = '',
45+
neurostore_url = '',
46+
id = '',
47+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
48+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
49+
user = '',
50+
username = ''
51+
)
52+
else :
53+
return AnnotationReturn(
54+
)
55+
"""
56+
57+
def testAnnotationReturn(self):
58+
"""Test AnnotationReturn"""
59+
# inst_req_only = self.make_instance(include_optional=False)
60+
# inst_req_and_optional = self.make_instance(include_optional=True)
61+
62+
if __name__ == '__main__':
63+
unittest.main()

0 commit comments

Comments
 (0)