Skip to content

Commit

Permalink
Ras import error message (#1542)
Browse files Browse the repository at this point in the history
* Fixed a RunTimeError

* Improved the schematize channel error message system.
  • Loading branch information
rpachaly authored Sep 6, 2024
1 parent b915881 commit a16a509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flo2d/flo2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3461,7 +3461,7 @@ def import_from_ras(self):
QApplication.setOverrideCursor(Qt.WaitCursor)
try:
dlg.import_geometry()
self.setup_dock_widgets()
# self.setup_dock_widgets()
self.uc.bar_info("HEC-RAS geometry data imported!")
except Exception as e:
self.uc.log_info(traceback.format_exc())
Expand Down
6 changes: 4 additions & 2 deletions flo2d/gui/xs_editor_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(self, iface, plot, table, lyrs):
self.user_xs_lyr.geometryChanged.connect(self.xs_feature_changed)
self.user_xs_lyr.attributeValueChanged.connect(self.xs_feature_changed)

self.user_xs_lyr.editingStopped.connect(lambda: self.populate_xsec_cbo(show_last_edited=True))
self.user_xs_lyr.afterCommitChanges.connect(lambda: self.populate_xsec_cbo(show_last_edited=True))
self.user_xs_lyr.selectionChanged.connect(self.switch2selected)

def setup_connection(self):
Expand Down Expand Up @@ -760,7 +760,9 @@ def schematize_channels(self):
" * Each User Left Bank line has at least 2 cross sections\n"
" crossing it.\n\n"
" * All cross sections associated to a User Left Bank line\n"
" intersects (crossover) it."
" intersects (crossover) it.\n\n"
" * Two or more cross sections cannot start/end \n"
" on the same cell."
"\n_________________________________________________",
e,
)
Expand Down

0 comments on commit a16a509

Please sign in to comment.