Skip to content

Commit

Permalink
Fix run script function
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed May 14, 2024
1 parent cdbf8ae commit 350b643
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/ert/libres_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
import time
import warnings
from multiprocessing.pool import ThreadPool
from typing import (
TYPE_CHECKING,
Expand Down Expand Up @@ -258,10 +259,20 @@ def run_ertscript( # type: ignore
storage: Storage,
ensemble: Ensemble,
*args: Optional[Any],
**kwargs: Optional[Any],
) -> Any:
warnings.warn(
"run_ertscript is deprecated, use the workflow runner",
DeprecationWarning,
stacklevel=1,
)
return ertscript().initializeAndRun(
*args, **kwargs, fixtures={"ensemble": ensemble, "storage": storage}
[],
argument_values=args,
fixtures={
"ert_config": self.config,
"ensemble": ensemble,
"storage": storage,
},
)

@classmethod
Expand Down

0 comments on commit 350b643

Please sign in to comment.