Revision 5127
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/tnrs.py | ||
---|---|---|
65 | 65 |
return match.groups() |
66 | 66 |
|
67 | 67 |
def tnrs_request(names, debug=False): |
68 |
''' |
|
69 |
Note that names containing only whitespace characters (after gwt_encode()) |
|
70 |
are ignored by TNRS and do not receive a response row. Thus, you should |
|
71 |
always match up the Name_submitted returned by TNRS with the actual |
|
72 |
submitted name to determine the corresponding TNRS response row. |
|
73 |
''' |
|
68 | 74 |
name_ct = len(names) |
69 | 75 |
assert name_ct <= max_names |
70 | 76 |
|
Also available in: Unified diff
tnrs.py: tnrs_request(): Added comment that names containing only whitespace characters are ignored by TNRS and do not receive a response row. Our tnrs_db and reimport pipeline handles the necessary re-matching-up by just creating taxonpaths for each Name_submitted, and then letting the data import process on the following import attach to the prepopulated taxonpaths.