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.

dataio.scripts.create_case_metadata.main()[source]

Entry point from command line

Return type:

None

class dataio.scripts.create_case_metadata.WfCreateCaseMetadata(*args, **kwargs)[source]

Bases: ErtScript

A class with a run() function that can be registered as an ERT plugin.

This is used for the ERT workflow context.

run(*args)[source]

Parse arguments and call _create_case_metadata_main()

Return type:

None

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.check_arguments(args)[source]

Do basic sanity checks of input

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