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
If the NDJSON includes values that are null, they get parsed as None values in the Python dict.
However, the command expects string values as long as the geolocation field exists in the record, so this causes an uncaught error
Traceback (most recent call last):
File "/nextstrain/augur/augur/__init__.py", line 70, in run
return args.__command__.run(args)
File "/nextstrain/augur/augur/curate/__init__.py", line 246, in run
dump_ndjson(validated_output_records)
File "/nextstrain/augur/augur/io/json.py", line 89, in dump_ndjson
for item in iterable:
File "/nextstrain/augur/augur/curate/__init__.py", line 154, in validate_records
for idx, record in enumerate(records):
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 227, in run
annotated_values = transform_geolocations(
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 163, in transform_geolocations
annotated_values = get_annotated_geolocation(geolocation_rules, transformed_values, case_sensitive)
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 109, in get_annotated_geolocation
return get_annotated_geolocation(geolocation_rules, raw_geolocation, case_sensitive, rule_traversal)
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 142, in get_annotated_geolocation
return get_annotated_geolocation(geolocation_rules, raw_geolocation, case_sensitive, rule_traversal)
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 109, in get_annotated_geolocation
return get_annotated_geolocation(geolocation_rules, raw_geolocation, case_sensitive, rule_traversal)
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 142, in get_annotated_geolocation
return get_annotated_geolocation(geolocation_rules, raw_geolocation, case_sensitive, rule_traversal)
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 109, in get_annotated_geolocation
return get_annotated_geolocation(geolocation_rules, raw_geolocation, case_sensitive, rule_traversal)
File "/nextstrain/augur/augur/curate/apply_geolocation_rules.py", line 95, in get_annotated_geolocation
current_rules = current_rules.get(field_value.lower())
AttributeError: 'NoneType' object has no attribute 'lower'
The text was updated successfully, but these errors were encountered:
Preview: <https://nextstrain.org/community/victorlin/nextstrain-test@e88bb6a/ebola/all-outbreaks-pathoplexus>
Downloading the data is trivial with the public API endpoints. Some
de-duplication is required, and the column names were the main hurdle.
There were many unhandled exceptions from augur curate commands which
for the most part I could figure out what was going wrong, however, in
some cases such as apply-geolocation-rules, I couldn't figure out how to
add division info without causing an error.
Discovered in ebola workflow
If the NDJSON includes values that are
null
, they get parsed asNone
values in the Python dict.However, the command expects string values as long as the geolocation field exists in the record, so this causes an uncaught error
The text was updated successfully, but these errors were encountered: