ResSimpy.Nexus.nexus_modify_object_in_file.ModifyObjectOperations

class ResSimpy.Nexus.nexus_modify_object_in_file.ModifyObjectOperations(object_to_modify: Any)[source]

Bases: object

Methods:

__init__(object_to_modify)

modify_network_object(object_to_modify, ...)

Modifies an existing object based on a matching dictionary of properties (partial matches allowed if precisely 1 matching object is found).


__init__(object_to_modify: Any) None[source]
modify_network_object(object_to_modify: dict[str, None | str | float | int], new_properties: dict[str, None | str | float | int], network: NexusNetwork) None[source]

Modifies an existing object based on a matching dictionary of properties (partial matches allowed if precisely 1 matching object is found). Updates the properties with properties in the new_properties dictionary. Applies primarily to network based objects.

Parameters:
  • object_to_modify (dict[str, None | str | float | int]) – dictionary containing attributes to match in the

  • add (existing object set. Requires an implemented) –

  • remove

  • new_properties (dict[str, None | str | float | int]) – properties to switch to in the new object