dataio.scripts.create_case_metadata module
Create FMU case metadata and register case on Sumo (optional).
This script is intended to be run through an ERT HOOK PRESIM workflow.
Script will parse global variables from the template location. If pointed towards the produced global_variables, fmu-config should run before this script to make sure global_variables is updated.
- class dataio.scripts.create_case_metadata.WfCreateCaseMetadata(*args, **kwargs)[source]
Bases:
ErtScriptA class with a run() function that can be registered as an ERT plugin.
This is used for the ERT workflow context.
- dataio.scripts.create_case_metadata.create_case_metadata_main(args)[source]
Create the case metadata and register case on Sumo.
- Return type:
None
- dataio.scripts.create_case_metadata.create_metadata(args)[source]
Create the case metadata and print them to the disk
- Return type:
str
- dataio.scripts.create_case_metadata.register_on_sumo(args, case_metadata_path)[source]
Register the case on Sumo by sending the case metadata
- Return type:
str
- dataio.scripts.create_case_metadata.get_parser()[source]
Construct parser object.
- Return type:
ArgumentParser
- dataio.scripts.create_case_metadata.legacy_ertscript_workflow(config)
Hook the WfCreateCaseMetadata class with documentation into ERT.
- Return type:
None