open-research / sumatra

http://neuralensemble.org/sumatra/
BSD 2-Clause "Simplified" License
127 stars 48 forks source link

filter records by parameter values in API and CLI #323

Closed babsey closed 7 years ago

babsey commented 8 years ago

The idea of this PR is to find records more efficiently if the list of records is filtered by a or several parameter values. You can test it in terminal:

smt list -p pkey=pval
smt list -p pkey:pval

or in API:

from sumatra.projects import load_project
p = load_project()
p.find_records(parameters={pkey:pval})
apdavison commented 8 years ago

This branch now has conflicts, I think since merging #293. Please could you fix them so this can be merged?

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.2%) to 72.543% when pulling be4e5aea1f2cdd6bcc1ed71caf57e4f36c9ec795 on babsey:list_param_filter into 9341bf6f288c54433e1097c220c06db7ec8d47f1 on open-research:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.2%) to 72.582% when pulling 271319f71f0cf8f503649317a3df08e51b02e94c on babsey:list_param_filter into 9341bf6f288c54433e1097c220c06db7ec8d47f1 on open-research:master.

babsey commented 7 years ago

309