File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ def get_regional_feature(
278
278
"kgId" : conn_pr ._matrix .id ,
279
279
},
280
280
'get_detail' : lambda conn_pr : {
281
- # "__column_names": conn_pr.column_names, TODO: where to get the names?
281
+ "__column_names" : list ( conn_pr .regionnames ), # TODO: where to get the names?
282
282
"__profile" : conn_pr .profile .tolist (),
283
283
},
284
284
'instance' : conn_pr ,
Original file line number Diff line number Diff line change @@ -207,3 +207,19 @@ def test_no_result_ieeg(self):
207
207
assert response .status_code == 200
208
208
# hoc1 left should have no ieeg result
209
209
assert len (result_content ) == 0
210
+
211
+ def test_rest_connectivity (self ):
212
+ conn_id = 'e428cb6b-0110-4205-94ac-533ca5de6bb5'
213
+ url = '/v1_0/atlases/{atlas_id}/parcellations/{parcellation_id}/regions/{region_spec}/features/ConnectivityProfile/{conn_id}' .format (
214
+ atlas_id = quote_plus (ATLAS_ID ),
215
+ parcellation_id = PARCELLATION_ID ,
216
+ region_spec = quote_plus (HOC1_LEFT_REGION_NAME ),
217
+ conn_id = conn_id
218
+ )
219
+ response = client .get (url )
220
+ assert response .status_code == 200
221
+ response_json = json .loads (response .content )
222
+ column_names = response_json .get ('__column_names' )
223
+ assert column_names is not None
224
+ assert type (column_names ) == list
225
+ assert len (column_names ) > 0
You can’t perform that action at this time.
0 commit comments