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 a button to delete input weather datafiles from the interface #96

Merged
merged 8 commits into from
Nov 25, 2017

Conversation

jnsebgosselin
Copy link
Owner

@jnsebgosselin jnsebgosselin commented Nov 24, 2017

Solve Issue #91

  • Add the feature
  • Add a test

It happens often that more than one input (concatenated) weather datafile is created for a same climate station. This happens for example if concatenated files are created for a same station, but for different period of time. Currently, to delete an input weather datafile, the user has to do it manually.

The objective of this PR is to add a button in the Gapfill Weather tab that will allow to delete an input weather datafile directly from GWHAT. This will also be less confusing for new users that maybe do not understand where the data are saved in GWHAT.

image

- the button is enabled only when a station is selected in the combobox.
- Added a "reload"argument to the method "load_data_dir_content" to
better control whether we force a reload of the data or we simply load
from the binary.
@pep8speaks
Copy link

pep8speaks commented Nov 24, 2017

Hello @jnsebgosselin! Thanks for updating the PR.

Line 19:1: E402 module level import not at top of file

Comment last updated on November 24, 2017 at 23:23 Hours UTC

@jnsebgosselin jnsebgosselin merged commit bb1507a into master Nov 25, 2017
@jnsebgosselin jnsebgosselin deleted the add_button_to_delete branch November 25, 2017 15:32
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