Skip to content

Commit

Permalink
Add simple test for design_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Sep 19, 2024
1 parent dbf8488 commit 269b529
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/unit_tests/sensitivity_analysis/test_design_matrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import pytest

from ert.config import ErtConfig
from ert.sensitivity_analysis.design_matrix import (
initialize_parameters,
read_design_matrix,
)
from ert.storage import open_storage


@pytest.mark.usefixtures("copy_poly_case")
def test_design_matrix(copy_poly_case):
ert_config = ErtConfig.from_file("poly.ert")
with open_storage(ert_config.ens_path, mode="w") as ert_storage:
design_frame = read_design_matrix(ert_config, "design_matrix.xlsx")
_ensemble = initialize_parameters(
design_frame,
ert_storage,
ert_config,
"my_experiment",
"my_ensemble",
)

0 comments on commit 269b529

Please sign in to comment.