DrSAR / SARlabpy

git clone git@pfeifer.phas.ubc.ca:SARlabpy (do not push to github, please)
http://code.SARlab.ca
Other
1 stars 0 forks source link

Update sarpy Patient class to be more selective about patient names #325

Closed firasm closed 9 years ago

firasm commented 9 years ago

currently, if you say sarpy.Patient('HerS1'), it will take all patients that have the starting HerS1,rather than just the HerS1 studies.

firasm commented 9 years ago

This actually isn't really an issue because you can restrict the names more specifically.

See here for details:

http://pymotw.com/2/glob/

One example of where this could be a problem is:

import sarpy
e = sarpy.Experiment('HPGS1')

This will get you HPGS1 and HPGS13:

e = sarpy.Experiment('HPGS1[A-Za-z]')

This will result in the following studies: