You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code selects all accepted genera in family Rutaceae:
import pykew.powo as powo
from pykew.powo_terms import Name, Filters
query = { Name.family: 'Rutaceae' }
myfilters = [Filters.accepted, Filters.genera]
result = powo.search(query, filters = myfilters)
print(result.size())
for r in result :
if 'name' in r and 'author' in r : print(r['name']+" "+r['author'])
Similarly, the species in each genus can be got by changing the query and filters, e.g. for Citrus:
It returns 402,409 results. The "families" filter doesn't seem to work as the same number of results are obtained when just using the "accepted" filter. I tried the "families" filter in some other tests and it didn't seem to do anything.
So two questions, does the "family" filter work? And if not, is there another way of getting a list of families?
The text was updated successfully, but these errors were encountered:
This package is not actively maintained, but from looking at the API you should be able to just pass the string family_f rather than Filters.families (which points to families_f).
The following code selects all accepted genera in family Rutaceae:
Similarly, the species in each genus can be got by changing the query and filters, e.g. for Citrus:
However, the following fails to get a list of families using the same approach:
It returns 402,409 results. The "families" filter doesn't seem to work as the same number of results are obtained when just using the "accepted" filter. I tried the "families" filter in some other tests and it didn't seem to do anything.
So two questions, does the "family" filter work? And if not, is there another way of getting a list of families?
The text was updated successfully, but these errors were encountered: