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

PR: Add Latitude, Longitude, and Elevation info to the weather station list. #67

Merged
merged 20 commits into from
Oct 4, 2017

Conversation

jnsebgosselin
Copy link
Owner

@jnsebgosselin jnsebgosselin commented Oct 2, 2017

Fixes #66

New features:

  • Latitude, longitude, and elevation are now stored in the WeatherSationList.
  • It is now obsolete to store the proximity in the station list since we are now able to recalculate it for any geo-coordinate as needed.

GUI improvement:

  • The column that shows the proximity in WeatherStationDisplayTable is now hidden by default. To show the column simply requires to set a reference geo-coordinate in the WeatherStationDisplayTable. The proximity is thus shown in the Search4Stations but is now hidden in DwnldWeatherWidget since it was useless.
  • Sorting was enabled by default in the WeatherStationDisplayTable.

Techdebt:

  • I refactored all the logic to fetch the info from the government of Canada website with BeautifulSoup. This make the code more robust and lighter.
  • We now used WeatherSationList in the StationFinder instead of using a generic list.
  • Make build fails if a test fails in Travis or AppVeyor.

- Move the try/except logic to open the url to a new method.
- Improved the way the number of station found is evaluated by using the
`re` module capabilities.
@pep8speaks
Copy link

pep8speaks commented Oct 3, 2017

Hello @jnsebgosselin! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on October 03, 2017 at 18:21 Hours UTC

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.

2 participants