Skip to content

Commit

Permalink
After review fixes 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebek committed Nov 6, 2023
1 parent ede5059 commit 80bc1b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
Dependency("hydxlib", "hydxlib", "==1.5.1", False),
Dependency("h5netcdf", "h5netcdf", "", False),
Dependency("greenlet", "greenlet", "!=0.4.17", False),
Dependency("threedi-mi-utils", "threedi_mi_utils", "==0.1.0", False),
Dependency("threedi-mi-utils", "threedi_mi_utils", "==0.1.1", False),
]

# On Windows, the hdf5 binary and thus h5py version depends on the QGis version
Expand Down
5 changes: 2 additions & 3 deletions gui/threedi_plugin_grid_result_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ def refresh(self):
# Iterate over revisions
for revision_number, local_revision in local_schematisation.revisions.items():
# Iterate over results
local_revision_results_dirs = listdirs(local_revision.results_dir) if os.path.isdir(local_revision.results_dir) else []
for result_dir in local_revision_results_dirs:
for result_dir in local_revision.results_dirs:
schema_item = QStandardItem(local_schematisation.name)
schema_item.setEditable(False)
revision_item = QStandardItem(str(revision_number))
Expand All @@ -220,7 +219,7 @@ def refresh(self):
self.model.appendRow([schema_item, revision_item, result_item])

# In case no results are present, but a gridadmin is present, we still add the grid, but without result item
if len(local_revision_results_dirs) == 0 and os.path.exists(os.path.join(local_revision.grid_dir, "gridadmin.h5")):
if len(local_revision.results_dirs) == 0 and os.path.exists(os.path.join(local_revision.grid_dir, "gridadmin.h5")):
schema_item = QStandardItem(local_schematisation.name)
schema_item.setEditable(False)
revision_item = QStandardItem(str(revision_number))
Expand Down

0 comments on commit 80bc1b2

Please sign in to comment.