Skip to content
Snippets Groups Projects
Commit 5d534b99 authored by Maximilian Loch's avatar Maximilian Loch
Browse files

changed statistics and progress msg in code

parent d39241e2
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,11 @@ if __name__ == '__main__':
if areg_response_key[0] == "ERROR":
errorfeatures += 1
progress_msg = f"""\
{areg_response_key[0]} : {areg_response[areg_response_key[0]]} | betroffene \
schule: [{item[0]}]\t{adresse['hnr']}; {adresse['stn']};{adresse['plz']}; \
{adresse['ort']}"""
progress_msg = (f"{areg_response_key[0]} : " +
f"{areg_response[areg_response_key[0]]} | " +
f"betroffene schule: [{item[0]}]\t{adresse['hnr']};" + # noqa
f" {adresse['stn']}; {adresse['plz']}; " +
f"{adresse['ort']}")
print(progress_msg)
......@@ -65,9 +66,9 @@ schule: [{item[0]}]\t{adresse['hnr']}; {adresse['stn']};{adresse['plz']}; \
# out.write(item)
percentage = round((numfeatures * 100) / maxfeatures, 2)
statistics = f"""
statistics:\n {numfeatures} from {maxfeatures} geocoded >> \
{percentage}%\n {missinfeatures} features with missing attributes\n \
{errorfeatures} features with errors\n"""
statistics = (f"statistics:\n {numfeatures} from {maxfeatures} geocoded" +
f" >> {percentage}%\n {missinfeatures} features with " +
f"missing attributes\n {errorfeatures} features with " +
f"errors\n")
print(statistics)
print("geocoding dataset finished, closing programm")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment