Skip to content

Commit

Permalink
Fix gui tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSava committed Oct 8, 2024
1 parent ee8a407 commit 4468068
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/ert/config/gen_data_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def from_config_dict(cls, config_dict: ConfigDict) -> Optional[Self]:
)

def read_from_file(self, run_path: str, _: int) -> polars.DataFrame:
def _read_file(filename: Path, report_step: int) -> polars.DataFrame:
if not filename.exists():
raise ValueError(f"Missing output file: {filename}")
data = np.loadtxt(_run_path / filename, ndmin=1)
active_information_file = _run_path / (str(filename) + "_active")
def _read_file(file_path: Path, report_step: int) -> polars.DataFrame:
if not file_path.exists():
raise ValueError(f"Missing output file: {file_path}")
data = np.loadtxt(file_path, ndmin=1)
active_information_file = _run_path / (file_path.name + "_active")
if active_information_file.exists():
active_list = np.loadtxt(active_information_file)
data[active_list == 0] = np.nan
Expand Down
2 changes: 1 addition & 1 deletion tests/ert/ui_tests/gui/test_load_results_manually.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def handle_load_results_dialog():
ensemble_selector.setCurrentIndex(index)

load_button = get_child(panel.parent(), QPushButton, name="Load")

run_path_edit = get_child(panel, QTextEdit, name="run_path_edit_lrm")

assert run_path_edit.isEnabled()
Expand Down

0 comments on commit 4468068

Please sign in to comment.