nwm_region_mgr.utils.config_utils.BaseOutputConfig#
- class nwm_region_mgr.utils.config_utils.BaseOutputConfig(**data)[source]#
Base Output Manager.
Attributes
model_computed_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
Methods
check_plot_config(values)Check if plot configuration is valid.
check_plot_path(values)Check if plot path is valid.
construct([_fields_set])copy(*[, include, exclude, update, deep])Returns a copy of the model.
dict(*[, include, exclude, by_alias, ...])from_orm(obj)get_file_path([vpu, algorithm, plot_type, ...])Get the file path for saving the output.
json(*[, include, exclude, by_alias, ...])model_construct([_fields_set])Creates a new instance of the Model class with validated data.
model_copy(*[, update, deep])model_dump(*[, mode, include, exclude, ...])model_dump_json(*[, indent, include, ...])model_json_schema([by_alias, ref_template, ...])Generates a JSON schema for a model class.
model_parametrized_name(params)Compute the class name for parametrizations of generic classes.
model_post_init(context, /)Override this method to perform additional initialization after __init__ and model_construct.
model_rebuild(*[, force, raise_errors, ...])Try to rebuild the pydantic-core schema for the model.
model_validate(obj, *[, strict, ...])Validate a pydantic model instance.
model_validate_json(json_data, *[, strict, ...])model_validate_strings(obj, *[, strict, ...])Validate the given object with string data against the Pydantic model.
parse_file(path, *[, content_type, ...])parse_obj(obj)parse_raw(b, *[, content_type, encoding, ...])plot_data(data, plot_dict)Plot the data and save png to the specified path.
read_from_file([vpu, algorithm, ...])Read output data from the specified path and format.
save_to_file(data[, vpu, algorithm, ...])Save output data to the specified path and format.
schema([by_alias, ref_template])schema_json(*[, by_alias, ref_template])update_forward_refs(**localns)validate(value)