Skip to content

Commit a308a85

Browse files
1a501fe52829c7d0c8fd9d568bcd7c69a86eb316
1 parent f966187 commit a308a85

16 files changed

+350
-51
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ docs/ResultList.md
5151
docs/ResultListResults.md
5252
docs/ResultReturn.md
5353
docs/Specification.md
54+
docs/SpecificationConditions.md
5455
docs/SpecificationList.md
5556
docs/SpecificationPostBody.md
5657
docs/SpecificationReturn.md
@@ -127,6 +128,7 @@ neurosynth_compose_sdk/models/result_list.py
127128
neurosynth_compose_sdk/models/result_list_results.py
128129
neurosynth_compose_sdk/models/result_return.py
129130
neurosynth_compose_sdk/models/specification.py
131+
neurosynth_compose_sdk/models/specification_conditions.py
130132
neurosynth_compose_sdk/models/specification_list.py
131133
neurosynth_compose_sdk/models/specification_post_body.py
132134
neurosynth_compose_sdk/models/specification_return.py
@@ -148,8 +150,5 @@ setup.cfg
148150
setup.py
149151
test-requirements.txt
150152
test/__init__.py
151-
test/test_studyset_reference.py
152-
test/test_studyset_reference_list.py
153-
test/test_studyset_reference_return.py
154-
test/test_studyset_reference_snapshots_inner.py
153+
test/test_specification_conditions.py
155154
tox.ini

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ Class | Method | HTTP request | Description
236236
- [ResultListResults](docs/ResultListResults.md)
237237
- [ResultReturn](docs/ResultReturn.md)
238238
- [Specification](docs/Specification.md)
239+
- [SpecificationConditions](docs/SpecificationConditions.md)
239240
- [SpecificationList](docs/SpecificationList.md)
240241
- [SpecificationPostBody](docs/SpecificationPostBody.md)
241242
- [SpecificationReturn](docs/SpecificationReturn.md)

docs/DefaultApi.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void (empty response body)
425425
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
426426

427427
# **studyset_references_get**
428-
> StudysetReferenceList studyset_references_get()
428+
> StudysetReferenceList studyset_references_get(nested=nested)
429429
430430
Your GET endpoint
431431

@@ -452,10 +452,11 @@ configuration = neurosynth_compose_sdk.Configuration(
452452
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
453453
# Create an instance of the API class
454454
api_instance = neurosynth_compose_sdk.DefaultApi(api_client)
455+
nested = True # bool | show nested component instead of id (optional)
455456

456457
try:
457458
# Your GET endpoint
458-
api_response = api_instance.studyset_references_get()
459+
api_response = api_instance.studyset_references_get(nested=nested)
459460
print("The response of DefaultApi->studyset_references_get:\n")
460461
pprint(api_response)
461462
except Exception as e:
@@ -464,7 +465,10 @@ with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
464465

465466

466467
### Parameters
467-
This endpoint does not need any parameter.
468+
469+
Name | Type | Description | Notes
470+
------------- | ------------- | ------------- | -------------
471+
**nested** | **bool**| show nested component instead of id | [optional]
468472

469473
### Return type
470474

@@ -487,7 +491,7 @@ No authorization required
487491
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
488492

489493
# **studyset_references_id_get**
490-
> StudysetReferenceReturn studyset_references_id_get(id)
494+
> StudysetReferenceReturn studyset_references_id_get(id, nested=nested)
491495
492496
Your GET endpoint
493497

@@ -513,10 +517,11 @@ with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
513517
# Create an instance of the API class
514518
api_instance = neurosynth_compose_sdk.DefaultApi(api_client)
515519
id = 'id_example' # str |
520+
nested = True # bool | show nested component instead of id (optional)
516521

517522
try:
518523
# Your GET endpoint
519-
api_response = api_instance.studyset_references_id_get(id)
524+
api_response = api_instance.studyset_references_id_get(id, nested=nested)
520525
print("The response of DefaultApi->studyset_references_id_get:\n")
521526
pprint(api_response)
522527
except Exception as e:
@@ -529,6 +534,7 @@ with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
529534
Name | Type | Description | Notes
530535
------------- | ------------- | ------------- | -------------
531536
**id** | **str**| |
537+
**nested** | **bool**| show nested component instead of id | [optional]
532538

533539
### Return type
534540

docs/MetaAnalysisSpecification.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ Name | Type | Description | Notes
77
**type** | **str** | the type of meta-analysis being run, typically either cbma or ibma, but others may become available in the future. | [optional]
88
**estimator** | [**Estimator**](Estimator.md) | | [optional]
99
**mask** | **str** | a string representing a binary nifti file to select which voxels a user wants to include in the analysis. | [optional]
10-
**contrast** | **str** | selection of categories in the filter column to differentiate groups, or \"neurosynth\", \"neuroquery\", or \"neurostore\" to compare to a database reference group | [optional]
10+
**conditions** | [**SpecificationConditions**](SpecificationConditions.md) | | [optional]
11+
**weights** | **List[float]** | | [optional]
1112
**transformer** | **str** | A transformation applied to column(s) (e.g., binarize based on a threshold). This is likely to become deprecated. | [optional]
1213
**corrector** | [**Corrector**](Corrector.md) | | [optional]
1314
**filter** | **str** | a column from annotations selecting which analyses to include in the meta-analysis | [optional]
15+
**database_studyset** | **str** | | [optional]
1416

1517
## Example
1618

docs/Specification.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ Name | Type | Description | Notes
88
**type** | **str** | the type of meta-analysis being run, typically either cbma or ibma, but others may become available in the future. | [optional]
99
**estimator** | [**Estimator**](Estimator.md) | | [optional]
1010
**mask** | **str** | a string representing a binary nifti file to select which voxels a user wants to include in the analysis. | [optional]
11-
**contrast** | **str** | selection of categories in the filter column to differentiate groups, or \"neurosynth\", \"neuroquery\", or \"neurostore\" to compare to a database reference group | [optional]
11+
**conditions** | [**SpecificationConditions**](SpecificationConditions.md) | | [optional]
12+
**weights** | **List[float]** | | [optional]
1213
**transformer** | **str** | A transformation applied to column(s) (e.g., binarize based on a threshold). This is likely to become deprecated. | [optional]
1314
**corrector** | [**Corrector**](Corrector.md) | | [optional]
1415
**filter** | **str** | a column from annotations selecting which analyses to include in the meta-analysis | [optional]
16+
**database_studyset** | **str** | | [optional]
1517

1618
## Example
1719

docs/SpecificationConditions.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SpecificationConditions
2+
3+
selection of categories in the filter column to differentiate groups, or \"neurosynth\", \"neuroquery\", or \"neurostore\" to compare to a database reference group
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
## Example
10+
11+
```python
12+
from neurosynth_compose_sdk.models.specification_conditions import SpecificationConditions
13+
14+
# TODO update the JSON string below
15+
json = "{}"
16+
# create an instance of SpecificationConditions from a JSON string
17+
specification_conditions_instance = SpecificationConditions.from_json(json)
18+
# print the JSON string representation of the object
19+
print SpecificationConditions.to_json()
20+
21+
# convert the object into a dict
22+
specification_conditions_dict = specification_conditions_instance.to_dict()
23+
# create an instance of SpecificationConditions from a dict
24+
specification_conditions_form_dict = specification_conditions.from_dict(specification_conditions_dict)
25+
```
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+

docs/SpecificationPostBody.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ Name | Type | Description | Notes
77
**type** | **str** | the type of meta-analysis being run, typically either cbma or ibma, but others may become available in the future. | [optional]
88
**estimator** | [**Estimator**](Estimator.md) | | [optional]
99
**mask** | **str** | a string representing a binary nifti file to select which voxels a user wants to include in the analysis. | [optional]
10-
**contrast** | **str** | selection of categories in the filter column to differentiate groups, or \"neurosynth\", \"neuroquery\", or \"neurostore\" to compare to a database reference group | [optional]
10+
**conditions** | [**SpecificationConditions**](SpecificationConditions.md) | | [optional]
11+
**weights** | **List[float]** | | [optional]
1112
**transformer** | **str** | A transformation applied to column(s) (e.g., binarize based on a threshold). This is likely to become deprecated. | [optional]
1213
**corrector** | [**Corrector**](Corrector.md) | | [optional]
1314
**filter** | **str** | a column from annotations selecting which analyses to include in the meta-analysis | [optional]
15+
**database_studyset** | **str** | | [optional]
1416

1517
## Example
1618

docs/SpecificationReturn.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ Name | Type | Description | Notes
88
**type** | **str** | the type of meta-analysis being run, typically either cbma or ibma, but others may become available in the future. | [optional]
99
**estimator** | [**Estimator**](Estimator.md) | | [optional]
1010
**mask** | **str** | a string representing a binary nifti file to select which voxels a user wants to include in the analysis. | [optional]
11-
**contrast** | **str** | selection of categories in the filter column to differentiate groups, or \"neurosynth\", \"neuroquery\", or \"neurostore\" to compare to a database reference group | [optional]
11+
**conditions** | [**SpecificationConditions**](SpecificationConditions.md) | | [optional]
12+
**weights** | **List[float]** | | [optional]
1213
**transformer** | **str** | A transformation applied to column(s) (e.g., binarize based on a threshold). This is likely to become deprecated. | [optional]
1314
**corrector** | [**Corrector**](Corrector.md) | | [optional]
1415
**filter** | **str** | a column from annotations selecting which analyses to include in the meta-analysis | [optional]
16+
**database_studyset** | **str** | | [optional]
1517
**id** | **str** | the identifier for the resource. | [optional]
1618
**updated_at** | **datetime** | when the resource was last modified. | [optional] [readonly]
1719
**created_at** | **datetime** | When the resource was created. | [optional] [readonly]

neurosynth_compose_sdk/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
from neurosynth_compose_sdk.models.result_list_results import ResultListResults
8383
from neurosynth_compose_sdk.models.result_return import ResultReturn
8484
from neurosynth_compose_sdk.models.specification import Specification
85+
from neurosynth_compose_sdk.models.specification_conditions import SpecificationConditions
8586
from neurosynth_compose_sdk.models.specification_list import SpecificationList
8687
from neurosynth_compose_sdk.models.specification_post_body import SpecificationPostBody
8788
from neurosynth_compose_sdk.models.specification_return import SpecificationReturn

neurosynth_compose_sdk/api/default_api.py

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
from pydantic import validate_arguments, ValidationError
2121
from typing_extensions import Annotated
2222

23-
from pydantic import StrictStr
23+
from pydantic import Field, StrictBool, StrictStr
24+
25+
from typing import Optional
2426

2527
from neurosynth_compose_sdk.models.neurostore_study_list import NeurostoreStudyList
2628
from neurosynth_compose_sdk.models.neurostore_study_return import NeurostoreStudyReturn
@@ -856,16 +858,18 @@ def projects_id_delete_with_http_info(self, id : StrictStr, **kwargs) -> ApiResp
856858
_request_auth=_params.get('_request_auth'))
857859

858860
@validate_arguments
859-
def studyset_references_get(self, **kwargs) -> StudysetReferenceList: # noqa: E501
861+
def studyset_references_get(self, nested : Annotated[Optional[StrictBool], Field(description="show nested component instead of id")] = None, **kwargs) -> StudysetReferenceList: # noqa: E501
860862
"""Your GET endpoint # noqa: E501
861863
862864
# noqa: E501
863865
This method makes a synchronous HTTP request by default. To make an
864866
asynchronous HTTP request, please pass async_req=True
865867
866-
>>> thread = api.studyset_references_get(async_req=True)
868+
>>> thread = api.studyset_references_get(nested, async_req=True)
867869
>>> result = thread.get()
868870
871+
:param nested: show nested component instead of id
872+
:type nested: bool
869873
:param async_req: Whether to execute the request asynchronously.
870874
:type async_req: bool, optional
871875
:param _request_timeout: timeout setting for this request. If one
@@ -880,19 +884,21 @@ def studyset_references_get(self, **kwargs) -> StudysetReferenceList: # noqa: E
880884
kwargs['_return_http_data_only'] = True
881885
if '_preload_content' in kwargs:
882886
raise ValueError("Error! Please call the studyset_references_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
883-
return self.studyset_references_get_with_http_info(**kwargs) # noqa: E501
887+
return self.studyset_references_get_with_http_info(nested, **kwargs) # noqa: E501
884888

885889
@validate_arguments
886-
def studyset_references_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
890+
def studyset_references_get_with_http_info(self, nested : Annotated[Optional[StrictBool], Field(description="show nested component instead of id")] = None, **kwargs) -> ApiResponse: # noqa: E501
887891
"""Your GET endpoint # noqa: E501
888892
889893
# noqa: E501
890894
This method makes a synchronous HTTP request by default. To make an
891895
asynchronous HTTP request, please pass async_req=True
892896
893-
>>> thread = api.studyset_references_get_with_http_info(async_req=True)
897+
>>> thread = api.studyset_references_get_with_http_info(nested, async_req=True)
894898
>>> result = thread.get()
895899
900+
:param nested: show nested component instead of id
901+
:type nested: bool
896902
:param async_req: Whether to execute the request asynchronously.
897903
:type async_req: bool, optional
898904
:param _preload_content: if False, the ApiResponse.data will
@@ -921,6 +927,7 @@ def studyset_references_get_with_http_info(self, **kwargs) -> ApiResponse: # no
921927
_params = locals()
922928

923929
_all_params = [
930+
'nested'
924931
]
925932
_all_params.extend(
926933
[
@@ -951,6 +958,9 @@ def studyset_references_get_with_http_info(self, **kwargs) -> ApiResponse: # no
951958

952959
# process the query parameters
953960
_query_params = []
961+
if _params.get('nested') is not None: # noqa: E501
962+
_query_params.append(('nested', _params['nested']))
963+
954964
# process the header parameters
955965
_header_params = dict(_params.get('_headers', {}))
956966
# process the form parameters
@@ -987,17 +997,19 @@ def studyset_references_get_with_http_info(self, **kwargs) -> ApiResponse: # no
987997
_request_auth=_params.get('_request_auth'))
988998

989999
@validate_arguments
990-
def studyset_references_id_get(self, id : StrictStr, **kwargs) -> StudysetReferenceReturn: # noqa: E501
1000+
def studyset_references_id_get(self, id : StrictStr, nested : Annotated[Optional[StrictBool], Field(description="show nested component instead of id")] = None, **kwargs) -> StudysetReferenceReturn: # noqa: E501
9911001
"""Your GET endpoint # noqa: E501
9921002
9931003
This method makes a synchronous HTTP request by default. To make an
9941004
asynchronous HTTP request, please pass async_req=True
9951005
996-
>>> thread = api.studyset_references_id_get(id, async_req=True)
1006+
>>> thread = api.studyset_references_id_get(id, nested, async_req=True)
9971007
>>> result = thread.get()
9981008
9991009
:param id: (required)
10001010
:type id: str
1011+
:param nested: show nested component instead of id
1012+
:type nested: bool
10011013
:param async_req: Whether to execute the request asynchronously.
10021014
:type async_req: bool, optional
10031015
:param _request_timeout: timeout setting for this request. If one
@@ -1012,20 +1024,22 @@ def studyset_references_id_get(self, id : StrictStr, **kwargs) -> StudysetRefere
10121024
kwargs['_return_http_data_only'] = True
10131025
if '_preload_content' in kwargs:
10141026
raise ValueError("Error! Please call the studyset_references_id_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
1015-
return self.studyset_references_id_get_with_http_info(id, **kwargs) # noqa: E501
1027+
return self.studyset_references_id_get_with_http_info(id, nested, **kwargs) # noqa: E501
10161028

10171029
@validate_arguments
1018-
def studyset_references_id_get_with_http_info(self, id : StrictStr, **kwargs) -> ApiResponse: # noqa: E501
1030+
def studyset_references_id_get_with_http_info(self, id : StrictStr, nested : Annotated[Optional[StrictBool], Field(description="show nested component instead of id")] = None, **kwargs) -> ApiResponse: # noqa: E501
10191031
"""Your GET endpoint # noqa: E501
10201032
10211033
This method makes a synchronous HTTP request by default. To make an
10221034
asynchronous HTTP request, please pass async_req=True
10231035
1024-
>>> thread = api.studyset_references_id_get_with_http_info(id, async_req=True)
1036+
>>> thread = api.studyset_references_id_get_with_http_info(id, nested, async_req=True)
10251037
>>> result = thread.get()
10261038
10271039
:param id: (required)
10281040
:type id: str
1041+
:param nested: show nested component instead of id
1042+
:type nested: bool
10291043
:param async_req: Whether to execute the request asynchronously.
10301044
:type async_req: bool, optional
10311045
:param _preload_content: if False, the ApiResponse.data will
@@ -1054,7 +1068,8 @@ def studyset_references_id_get_with_http_info(self, id : StrictStr, **kwargs) ->
10541068
_params = locals()
10551069

10561070
_all_params = [
1057-
'id'
1071+
'id',
1072+
'nested'
10581073
]
10591074
_all_params.extend(
10601075
[
@@ -1088,6 +1103,9 @@ def studyset_references_id_get_with_http_info(self, id : StrictStr, **kwargs) ->
10881103

10891104
# process the query parameters
10901105
_query_params = []
1106+
if _params.get('nested') is not None: # noqa: E501
1107+
_query_params.append(('nested', _params['nested']))
1108+
10911109
# process the header parameters
10921110
_header_params = dict(_params.get('_headers', {}))
10931111
# process the form parameters

0 commit comments

Comments
 (0)