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
Branches
No related tags found
No related merge requests found
...@@ -50,10 +50,11 @@ if __name__ == '__main__': ...@@ -50,10 +50,11 @@ if __name__ == '__main__':
if areg_response_key[0] == "ERROR": if areg_response_key[0] == "ERROR":
errorfeatures += 1 errorfeatures += 1
progress_msg = f"""\ progress_msg = (f"{areg_response_key[0]} : " +
{areg_response_key[0]} : {areg_response[areg_response_key[0]]} | betroffene \ f"{areg_response[areg_response_key[0]]} | " +
schule: [{item[0]}]\t{adresse['hnr']}; {adresse['stn']};{adresse['plz']}; \ f"betroffene schule: [{item[0]}]\t{adresse['hnr']};" + # noqa
{adresse['ort']}""" f" {adresse['stn']}; {adresse['plz']}; " +
f"{adresse['ort']}")
print(progress_msg) print(progress_msg)
...@@ -65,9 +66,9 @@ schule: [{item[0]}]\t{adresse['hnr']}; {adresse['stn']};{adresse['plz']}; \ ...@@ -65,9 +66,9 @@ schule: [{item[0]}]\t{adresse['hnr']}; {adresse['stn']};{adresse['plz']}; \
# out.write(item) # out.write(item)
percentage = round((numfeatures * 100) / maxfeatures, 2) percentage = round((numfeatures * 100) / maxfeatures, 2)
statistics = f""" statistics = (f"statistics:\n {numfeatures} from {maxfeatures} geocoded" +
statistics:\n {numfeatures} from {maxfeatures} geocoded >> \ f" >> {percentage}%\n {missinfeatures} features with " +
{percentage}%\n {missinfeatures} features with missing attributes\n \ f"missing attributes\n {errorfeatures} features with " +
{errorfeatures} features with errors\n""" f"errors\n")
print(statistics) print(statistics)
print("geocoding dataset finished, closing programm") 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