Skip to content

Commit

Permalink
Plot observation if found
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed May 23, 2024
1 parent 2c5831e commit 2589eb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ert/gui/ertwidgets/storage_info_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,13 @@ def _currentTabChanged(self, index: int) -> None:

self._observations_tree_widget.sortItems(0, Qt.SortOrder.AscendingOrder)

for i in range(self._observations_tree_widget.topLevelItemCount()):
if self._observations_tree_widget.topLevelItem(i).childCount() > 0:
self._observations_tree_widget.setCurrentItem(
self._observations_tree_widget.topLevelItem(i).child(0)
)
break

@Slot(Ensemble)
def setEnsemble(self, ensemble: Ensemble) -> None:
self._ensemble = ensemble
Expand Down

0 comments on commit 2589eb3

Please sign in to comment.