add postal code to automatic zip code detection
@@ -664,7 +664,7 @@ def check_additional_info(additional_info, path_to_config_files):
while True:
auto_comments = ["travel surveillance"]
- if info.lower().startswith("zip") or info.endswith(".0") or info.lower() in auto_comments or (info.isnumeric() and int(info) <= 9999 and int(info) >= 1000):
+ if info.lower().startswith("zip") or info.lower().startswith("postal code") or info.endswith(".0") or info.lower() in auto_comments or (info.isnumeric() and int(info) <= 9999 and int(info) >= 1000):
print("Auto-add comment for " + bold(info))
for (id, strain) in strain_list:
annotations_append.append("# " + strain + "\t" + id + "\t" + info_type + ": " + info)
