Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV] refactor coding: do/remove checks, adjust exceptions, cleanup coding #196

Merged
merged 6 commits into from
Apr 25, 2023

Conversation

treee111
Copy link
Owner

@treee111 treee111 commented Apr 3, 2023

This PR…

a simple, one sentence summary of the ticket ensures the PR has a clear overall focus.

  • moves certain functions to a more appropriate location
  • checks if X/Y tile has countries. exit if not, because then nothing is to be processed
  • removes multiple translations from input to geofabrik country. Input is already checked against geofabrik
  • deletes unused functions

How to test

  1. test different processings

Pull Request Checklist

@treee111 treee111 changed the title [DEV] adjust exceptions and cleanup [DEV] adjust exceptions and cleanup coding Apr 3, 2023
@treee111 treee111 added this to the v4.0.0 milestone Apr 3, 2023
- nowadays input is checked against geofabrik countries
- countries are translated in addition when initializing class CountryGeofabrik
@treee111 treee111 force-pushed the exceptions-cleanup-2 branch from 174d0a2 to da48a2b Compare April 25, 2023 19:43
@treee111 treee111 changed the title [DEV] adjust exceptions and cleanup coding [DEV] refactor coding: do/remove checks, adjust exceptions, cleanup coding Apr 25, 2023
@treee111 treee111 merged commit 0474978 into release-v4.0.0 Apr 25, 2023
@treee111 treee111 deleted the exceptions-cleanup-2 branch April 25, 2023 19:48
treee111 added a commit that referenced this pull request May 5, 2023
…oding (#196)

* move get_ ... _from_input to each class as static method

* move translate_id_no_to_geofabrik to CountryGeofabrik

with unittests

* check if xy coordinate has countries and exit if not

with unittests

* delete unused functions. found with vulture

* unify docs

* remove not needed translations from input country to geofabrik country

- nowadays input is checked against geofabrik countries
- countries are translated in addition when initializing class CountryGeofabrik
alfh pushed a commit to alfh/wahooMapsCreator that referenced this pull request Nov 4, 2023
…oding (treee111#196)

* move get_ ... _from_input to each class as static method

* move translate_id_no_to_geofabrik to CountryGeofabrik

with unittests

* check if xy coordinate has countries and exit if not

with unittests

* delete unused functions. found with vulture

* unify docs

* remove not needed translations from input country to geofabrik country

- nowadays input is checked against geofabrik countries
- countries are translated in addition when initializing class CountryGeofabrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant