ResSimpy.Nexus.nexus_constraint_operations.load_inline_constraints

ResSimpy.Nexus.nexus_constraint_operations.load_inline_constraints(file_as_list: list[str], constraint: type[NexusConstraint], current_date: str | None, unit_system: UnitSystem, property_map: dict[str, tuple[str, type]], existing_constraints: dict[str, list[NexusConstraint]], nexus_file: File, start_line_index: int, network_names: list[str] | None = None) None[source]
Loads table of constraints with the wellname/node first and the constraints following inline

uses previous set of constraints as still applied to the well.

Args:

file_as_list (list[str]): file represented as a list of strings constraint (NexusConstraint): object to store the attributes extracted from each row. current_date (str): the current date in the table unit_system (UnitSystem): Unit system enum property_map (dict[str, tuple[str, type]]): Mapping of nexus keywords to attributes existing_constraints (dict[str, NexusConstraint]): all existing constraints from previous lines of the surface file network_names (Optional[list[str]]): list of names for all nodes, wells and connections in a nexus network.

Used in deriving constraints from wildcards. Defaults to None

Returns:

dict[UUID, int]: dictionary of object locations derived from inline table.