-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add ERT WF to copy preprocessed data #716
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Some small comments but I know much of this is adopted from existing things. Nice job with the tests
parser.add_argument( | ||
"--verbosity", type=str, help="Set log level", default="WARNING" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be deprecated like other verbosity options in dataio?
|
||
if not Path(args.ert_caseroot).is_absolute(): | ||
logger.debug("Argument 'ert_caseroot' was not absolute: %s", args.ert_caseroot) | ||
raise ValueError("'ert_caseroot' must be an absolute path") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argparse.ArgumentError
is another option here, but I see this is most likely taken from create_case_metadata
logger.setLevel(args.verbosity) | ||
|
||
searchpath = Path(args.ert_config_path) / args.inpath | ||
match_pattern = "[!.]*" # ignore metafiles (starts with '.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any possibility this ignores other files we want? (I assume not: but just a sanity check)
PR that adds an ERT plugin workflow
WF_COPY_PREPROCESSED_DATAIO
to replace the use of the locally installed workflow showcased in Drogon:Naming and arguments were kept the same as in Drogon to make this a drop-in replacement for the users that have implemented the Drogon workflow.
Main differences with the Drogon script is that this PR uses the new
ExportPreprocessedData
class to export the data. This enables:Addresses #702