Module patch

Module patch 

Source
Expand description

Code for applying patches to model input files.

Structsยง

FilePatch
Structure to hold patches for a model csv file.
ModelPatch
Struct to hold a set of patches to apply to a base model.

Functionsยง

merge_model_toml ๐Ÿ”’
Merge a TOML patch into a base TOML string and return the merged TOML.
modify_base_with_patch ๐Ÿ”’
Modify a string representation of a base CSV file by applying a FilePatch. Preserves the order of rows from the base file, with new rows appended at the end.