Skip to content

Commit 061b699

Browse files
committed
fixup! Support glob pattern in seismic observations
1 parent e957431 commit 061b699

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ert/config/_reservoir_data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ def resolve_pattern_filepaths(
136136
f"No files matching pattern '{filename_pattern}' found "
137137
f"in '{search_dir}'"
138138
)
139-
return matching_paths
139+
return sorted(matching_paths)

tests/ert/unit_tests/config/test_observation_declaration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ def make_observations_with_pattern(
13171317
ObservationDict(
13181318
{
13191319
"type": ObservationType.SEISMIC,
1320-
"CSV": f"{directory}/{pattern}",
1320+
"OBS_FILE": f"{directory}/{pattern}",
13211321
},
13221322
context=file_context_token(obs_type="SEISMIC_OBSERVATION"),
13231323
)
@@ -1367,7 +1367,7 @@ def make_observations_with_pattern(pattern: str) -> list[SeismicObservation]:
13671367
ObservationDict(
13681368
{
13691369
"type": ObservationType.SEISMIC,
1370-
"CSV": pattern,
1370+
"OBS_FILE": pattern,
13711371
},
13721372
context=file_context_token(obs_type="SEISMIC_OBSERVATION"),
13731373
)

0 commit comments

Comments
 (0)