Skip to content

Commit 3d24e53

Browse files
6f514baa2593b8385156aece8946ec65378691a0
1 parent aff9cd2 commit 3d24e53

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

Diff for: docs/PipelineStudyResultsApi.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313

1414
# **pipeline_study_results_get**
15-
> PipelineStudyResultList pipeline_study_results_get(feature_filter=feature_filter, pipeline_config=pipeline_config, study_id=study_id, version=version)
15+
> PipelineStudyResultList pipeline_study_results_get(feature_filter=feature_filter, feature_flatten=feature_flatten, pipeline_config=pipeline_config, study_id=study_id, version=version)
1616
1717
GET a list of pipeline run results
1818

@@ -37,13 +37,14 @@ with neurostore_sdk.ApiClient(configuration) as api_client:
3737
# Create an instance of the API class
3838
api_instance = neurostore_sdk.PipelineStudyResultsApi(api_client)
3939
feature_filter = ['feature_filter_example'] # List[str] | Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. (optional)
40+
feature_flatten = True # bool | (optional)
4041
pipeline_config = ['pipeline_config_example'] # List[str] | Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. (optional)
4142
study_id = ['study_id_example'] # List[str] | Filter results by base study ID (optional)
4243
version = 'version_example' # str | Filter results by pipeline config version (optional)
4344

4445
try:
4546
# GET a list of pipeline run results
46-
api_response = api_instance.pipeline_study_results_get(feature_filter=feature_filter, pipeline_config=pipeline_config, study_id=study_id, version=version)
47+
api_response = api_instance.pipeline_study_results_get(feature_filter=feature_filter, feature_flatten=feature_flatten, pipeline_config=pipeline_config, study_id=study_id, version=version)
4748
print("The response of PipelineStudyResultsApi->pipeline_study_results_get:\n")
4849
pprint(api_response)
4950
except Exception as e:
@@ -58,6 +59,7 @@ with neurostore_sdk.ApiClient(configuration) as api_client:
5859
Name | Type | Description | Notes
5960
------------- | ------------- | ------------- | -------------
6061
**feature_filter** | [**List[str]**](str.md)| Filter results by feature content. Format: \&quot;PipelineName[:version]:field_path&#x3D;value\&quot;. Examples: - \&quot;TestPipeline:1.0.0:groups.diagnosis&#x3D;ADHD\&quot; (specific version) - \&quot;TestPipeline:groups.diagnosis&#x3D;ADHD\&quot; (latest version) Field path supports array notation with [], regex search with ~, and comparisons with &#x3D;, &gt;, &lt;, &gt;&#x3D;, &lt;&#x3D;. | [optional]
62+
**feature_flatten** | **bool**| | [optional]
6163
**pipeline_config** | [**List[str]**](str.md)| Filter results by pipeline config content. Format: \&quot;PipelineName[:version]:config_path&#x3D;value\&quot;. Examples: - \&quot;TestPipeline:1.0.0:preprocessing.smoothing&#x3D;8\&quot; (specific version) - \&quot;TestPipeline:model.type&#x3D;linear\&quot; (latest version) Config path supports array notation with [], regex search with ~, and comparisons with &#x3D;, &gt;, &lt;, &gt;&#x3D;, &lt;&#x3D;. | [optional]
6264
**study_id** | [**List[str]**](str.md)| Filter results by base study ID | [optional]
6365
**version** | **str**| Filter results by pipeline config version | [optional]

Diff for: neurostore_sdk/api/pipeline_study_results_api.py

+18-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing import Any, Dict, List, Optional, Tuple, Union
1818
from typing_extensions import Annotated
1919

20-
from pydantic import Field, StrictStr
20+
from pydantic import Field, StrictBool, StrictStr
2121
from typing import List, Optional
2222
from typing_extensions import Annotated
2323
from neurostore_sdk.models.pipeline_study_result import PipelineStudyResult
@@ -45,6 +45,7 @@ def __init__(self, api_client=None) -> None:
4545
def pipeline_study_results_get(
4646
self,
4747
feature_filter: Annotated[Optional[List[StrictStr]], Field(description="Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. ")] = None,
48+
feature_flatten: Optional[StrictBool] = None,
4849
pipeline_config: Annotated[Optional[List[StrictStr]], Field(description="Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. ")] = None,
4950
study_id: Annotated[Optional[List[StrictStr]], Field(description="Filter results by base study ID")] = None,
5051
version: Annotated[Optional[StrictStr], Field(description="Filter results by pipeline config version")] = None,
@@ -66,6 +67,8 @@ def pipeline_study_results_get(
6667
6768
:param feature_filter: Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
6869
:type feature_filter: List[str]
70+
:param feature_flatten:
71+
:type feature_flatten: bool
6972
:param pipeline_config: Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
7073
:type pipeline_config: List[str]
7174
:param study_id: Filter results by base study ID
@@ -96,6 +99,7 @@ def pipeline_study_results_get(
9699

97100
_param = self._pipeline_study_results_get_serialize(
98101
feature_filter=feature_filter,
102+
feature_flatten=feature_flatten,
99103
pipeline_config=pipeline_config,
100104
study_id=study_id,
101105
version=version,
@@ -123,6 +127,7 @@ def pipeline_study_results_get(
123127
def pipeline_study_results_get_with_http_info(
124128
self,
125129
feature_filter: Annotated[Optional[List[StrictStr]], Field(description="Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. ")] = None,
130+
feature_flatten: Optional[StrictBool] = None,
126131
pipeline_config: Annotated[Optional[List[StrictStr]], Field(description="Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. ")] = None,
127132
study_id: Annotated[Optional[List[StrictStr]], Field(description="Filter results by base study ID")] = None,
128133
version: Annotated[Optional[StrictStr], Field(description="Filter results by pipeline config version")] = None,
@@ -144,6 +149,8 @@ def pipeline_study_results_get_with_http_info(
144149
145150
:param feature_filter: Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
146151
:type feature_filter: List[str]
152+
:param feature_flatten:
153+
:type feature_flatten: bool
147154
:param pipeline_config: Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
148155
:type pipeline_config: List[str]
149156
:param study_id: Filter results by base study ID
@@ -174,6 +181,7 @@ def pipeline_study_results_get_with_http_info(
174181

175182
_param = self._pipeline_study_results_get_serialize(
176183
feature_filter=feature_filter,
184+
feature_flatten=feature_flatten,
177185
pipeline_config=pipeline_config,
178186
study_id=study_id,
179187
version=version,
@@ -201,6 +209,7 @@ def pipeline_study_results_get_with_http_info(
201209
def pipeline_study_results_get_without_preload_content(
202210
self,
203211
feature_filter: Annotated[Optional[List[StrictStr]], Field(description="Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. ")] = None,
212+
feature_flatten: Optional[StrictBool] = None,
204213
pipeline_config: Annotated[Optional[List[StrictStr]], Field(description="Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=. ")] = None,
205214
study_id: Annotated[Optional[List[StrictStr]], Field(description="Filter results by base study ID")] = None,
206215
version: Annotated[Optional[StrictStr], Field(description="Filter results by pipeline config version")] = None,
@@ -222,6 +231,8 @@ def pipeline_study_results_get_without_preload_content(
222231
223232
:param feature_filter: Filter results by feature content. Format: \"PipelineName[:version]:field_path=value\". Examples: - \"TestPipeline:1.0.0:groups.diagnosis=ADHD\" (specific version) - \"TestPipeline:groups.diagnosis=ADHD\" (latest version) Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
224233
:type feature_filter: List[str]
234+
:param feature_flatten:
235+
:type feature_flatten: bool
225236
:param pipeline_config: Filter results by pipeline config content. Format: \"PipelineName[:version]:config_path=value\". Examples: - \"TestPipeline:1.0.0:preprocessing.smoothing=8\" (specific version) - \"TestPipeline:model.type=linear\" (latest version) Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
226237
:type pipeline_config: List[str]
227238
:param study_id: Filter results by base study ID
@@ -252,6 +263,7 @@ def pipeline_study_results_get_without_preload_content(
252263

253264
_param = self._pipeline_study_results_get_serialize(
254265
feature_filter=feature_filter,
266+
feature_flatten=feature_flatten,
255267
pipeline_config=pipeline_config,
256268
study_id=study_id,
257269
version=version,
@@ -274,6 +286,7 @@ def pipeline_study_results_get_without_preload_content(
274286
def _pipeline_study_results_get_serialize(
275287
self,
276288
feature_filter,
289+
feature_flatten,
277290
pipeline_config,
278291
study_id,
279292
version,
@@ -306,6 +319,10 @@ def _pipeline_study_results_get_serialize(
306319

307320
_query_params.append(('feature_filter', feature_filter))
308321

322+
if feature_flatten is not None:
323+
324+
_query_params.append(('feature_flatten', feature_flatten))
325+
309326
if pipeline_config is not None:
310327

311328
_query_params.append(('pipeline_config', pipeline_config))

0 commit comments

Comments
 (0)