Any suggestions would be appreciated.
Ben
With PyXnat:
database = Interface(server='http://your.server')
contraints = [('xnat:mrSessionData/data','>','2011-12-01'),'AND']
MyResult =
database.select('xnat:mrSessionData',['xnat:mrSessionData/SESSION_ID','xnat:mrSessionData/date']).where(contraints)
print MyResult.dumps_csv()
Best,
Joerg
--
Dr. rer. nat. Joerg Stadler
Leibniz Institute for Neurobiology (LIN)
Special Lab Non-Invasive Brain Imaging
Brenneckestr. 6, D - 39118 Magdeburg
**new phone number**
Tel.: +49-391-6263-92171 Fax: +49-391-6263-92589
Gnupg-Key:http://wwwkeys.pgp.net search for E-Mail Adress
Key fingerprint:CA09 39ED 5019 1AB8 6C6E 616F E7A3 8B24 E460 E70C
contraints = [('xnat:mrSessionData/date','>=','2011-12-01'),'AND']
Thanks!
Ben
> --
> You received this message because you are subscribed to the Google Groups
> "xnat_discussion" group.
> To post to this group, send email to xnat_di...@googlegroups.com.
> To unsubscribe from this group, send email to
> xnat_discussi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/xnat_discussion?hl=en.
>
>
I'm open to suggestions to improve the documentation, and you can also
improve it yourself through github: https://github.com/pyxnat/pyxnat
Best,
Yannick
> > Gnupg-Key:http://wwwkeys.pgp.netsearch for E-Mail Adress
>>> contraints = [('xnat:subjectData/SUBJECT_ID','LIKE','%'),
... ('xnat:subjectData/PROJECT', '=', 'my_project'),
... 'OR',
... [('xnat:subjectData/AGE','>','14'),
... 'AND'
... ]
... ]
is that?
a: (SUBJECT_ID LIKE % OR PROJECT = my_project) AND AGE > 14
b: SUBJECT_ID LIKE % OR (PROJECT = my_project AND AGE > 14)
c: (SUBJECT_ID LIKE % AND PROJECT = my_project) OR AGE > 14
d: SUBJECT_ID LIKE % AND (PROJECT = my_project OR AGE > 14)
The doc says: "The following queries find all the subjects that are within
my_project or that have an age superior to 14." The SUBJECT_ID muddies
the water but is assumably needed for some reason.
Ben