templateflow / python-client

A python client to query TemplateFlow via pyBIDS
https://templateflow.org/python-client/
Apache License 2.0
8 stars 12 forks source link

improve `density` parsing #30

Closed mgxd closed 4 years ago

mgxd commented 4 years ago
In [1]: import templateflow.api as tf                                                                                                                         

In [2]: tf.get('fsLR', density='32k')                                                                                                                         
Out[2]: []

In [3]: tf.get('fsLR', density=32)  # or '32'
Downloading https://templateflow.s3.amazonaws.com/tpl-fsLR/tpl-fsLR_hemi-L_den-32k_nomedialwall.surf.gii
...

this can probably be easily fixed by adjusting the regex