Skip to content

Commit

Permalink
In the selector for branch_path, display index:pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Jan 10, 2025
1 parent cc8acb6 commit f47fb80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svir/dialogs/load_gmf_data_as_layer_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def __init__(self, drive_engine_dlg, iface, viewer_dock, session, hostname,

self.extract_realizations()

branch_paths = [bp.decode('utf8')
for bp in self.rlzs_npz['array']['branch_path']]
branch_paths = [f"{i}:{bp.decode('utf8')}"
for i, bp in enumerate(self.rlzs_npz['array']['branch_path'])]

if 'GEM_QGIS_TEST' in os.environ:
branch_path = branch_paths[0]
Expand All @@ -77,7 +77,7 @@ def __init__(self, drive_engine_dlg, iface, viewer_dock, session, hostname,
self.reject()
return

self.rlz_id = branch_paths.index(branch_path)
self.rlz_id = int(branch_path.split(':')[0])

log_msg('Extracting events. Watch progress in QGIS task bar',
level='I', message_bar=self.iface.messageBar())
Expand Down

0 comments on commit f47fb80

Please sign in to comment.