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

Load outputs as tables from csv with a single click #637

Merged
merged 1 commit into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion svir/dialogs/load_basic_csv_as_layer_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ def __init__(self, iface, viewer_dock, session, hostname, calc_id,
self.file_browser_tbn.setEnabled(True)
if self.path:
self.path_le.setText(self.path)
self.show()
# TODO: add a warning in case the file size exceeds a threshold
# self.show()
if self.ok_button.isEnabled():
self.accept()
else:
self.show()

def set_ok_button(self):
self.ok_button.setEnabled(bool(self.path))
Expand Down
1 change: 1 addition & 0 deletions svir/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ [email protected]
changelog=
3.7.2
* The management of profiles for the connection to the OpenQuake Platform was fixed.
* OQ-Engine outputs to be loaded as tables from csv are loaded directly with a single click, instead of prior displaying a dialog showing the file size.
3.7.1
* Instead of the 'sourcegroups' output (that was removed from the OQ-Engine), the plugin can now load the new output 'events'
* The user can choose if selecting the '.ini' file to run a OQ-Engine calculation, or letting the OQ-Engine automatically pick one from the list of input files.
Expand Down