pyxnat.Select¶
-
class
pyxnat.
Select
(interface)¶ Data selection interface. Callable object that indicates the data to be returned to the user.
Examples
- Select with a path:
>>> interface.select('/projects/myproj/subjects').get()
- Select with a datatype:
>>> columns = ['xnat:subjectData/PROJECT', 'xnat:subjectData/SUBJECT_ID' ] >>> criteria = [('xnat:subjectData/SUBJECT_ID', 'LIKE', '*'), 'AND' ] >>> interface.select('xnat:subjectData', columns ).where(criteria)