-
Notifications
You must be signed in to change notification settings - Fork 0
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
SWOB to GeoJSON feedback #1
Comments
Re: https://github.com/ECCC-PMCU/SWOB-GeoJSON/blob/master/src/swob2geojsonV2.py
|
|
(py3) sornalingamt@woudc-px-dev1:~/swob/SWOB-GeoJSON-master/src$ pycodestyle swob2geojsonV2.py (py3) sornalingamt@woudc-px-dev1:~/swob/SWOB-GeoJSON-master/src$ pycodestyle run_tests.py |
|
Looks good @rjwest.
|
|
(py3) sornalingamt@woudc-px-dev1:~/swob/SWOB-GeoJSON-master/test$ python run_tests.py |
@rjwest good work here https://github.com/ECCC-PMCU/SWOB-GeoJSON/blob/master/src/swob2geojson.py
Some feedback:
I like the data structure you're using internally to capture the content
I don't see the qualifiers parse. Where are you storing the 'qa_summary', 'data_flag' etc values? Perhaps you can store the qualifiers as sub item in each element's list as an element itself since qualifies also have the same XML attributes as their parent elements.
How are you handling 'code' uom? I don't see them in the structure for all the element, only some.
Make sure to do proper logging, remove all print statements
Make sure to run your code through pep8: https://www.python.org/dev/peps/pep-0008/. You can install pep8 like so https://pypi.org/project/pep8/ and run it against your code to clear any PEP8 style violations.
Provide a test suite https://docs.python.org/3/library/unittest.html. Here's an example: https://github.com/woudc/woudc-extcsv/tree/master/tests
The text was updated successfully, but these errors were encountered: