Revision 5089
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/tnrs_client | ||
---|---|---|
22 | 22 |
if not taxons: raise SystemExit('Usage: '+opts.env_usage(env_names, True) |
23 | 23 |
+' '+sys.argv[0]+' taxon... >out 2>>log') |
24 | 24 |
|
25 |
streams.copy(tnrs.tnrs_request(taxons, debug), sys.stdout) |
|
25 |
streams.copy(tnrs.repeated_tnrs_request(taxons, debug), sys.stdout)
|
|
26 | 26 |
|
27 | 27 |
main() |
bin/tnrs_db | ||
---|---|---|
61 | 61 |
total_pause = 0 |
62 | 62 |
|
63 | 63 |
# Run TNRS |
64 |
stream = tnrs.tnrs_request(list(sql.values(cur))) |
|
64 |
stream = tnrs.repeated_tnrs_request(list(sql.values(cur)))
|
|
65 | 65 |
stream_info = csvs.stream_info(stream, parse_header=True) |
66 | 66 |
stream = streams.ProgressInputStream(stream, sys.stderr, n=1000) |
67 | 67 |
sql_io.append_csv(db, tnrs_data, stream_info, stream) |
Also available in: Unified diff
tnrs_client, tnrs_db: Use new tnrs.repeated_tnrs_request()