ResSimpy.Nexus.DataModels.NexusSeparatorMethod.NexusSeparatorMethod

class ResSimpy.Nexus.DataModels.NexusSeparatorMethod.NexusSeparatorMethod(file: NexusFile, input_number: int, separator_type: str | None = None, properties: dict[str, Union[str, int, float, enum.Enum, list[str], pandas.DataFrame, dict[str, Union[float, pandas.DataFrame]]]] | None = None)[source]

Bases: DynamicProperty

Class to hold data input for a Nexus Separator method.

file

Nexus Separator file object

Type:

NexusFile

input_number

Separator method number in Nexus fcs file

Type:

int

separator_type

Type of separator method, e.g., BLACKOIL, GASPLANT or EOS. Defaults to None

Type:

Optional[str]

properties (dict[str, Union[str, int, float, Enum, list[str], pd.DataFrame,

dict[str, Union[float, pd.DataFrame]]]]):

Dictionary holding all properties for a specific separator method. Defaults to empty dictionary.

Public Data Attributes:

separator_type

file

properties

Inherited from DynamicProperty

input_number

file

Methods:

__init__(file, input_number[, ...])

to_string()

Create string with separator data in Nexus file format.

read_properties()

Read Nexus Separator file contents and populate NexusSeparatorMethod object.

__eq__(other)

Return self==value.

Inherited from DynamicProperty

__init__(input_number, file)

__repr__()

Pretty printing dynamic property data.

to_string()

Write dynamic property data to string.

write_to_file([overwrite_existing, ...])

Write dynamic property data to file.

__eq__(other)

Return self==value.


__init__(file: NexusFile, input_number: int, separator_type: str | None = None, properties: dict[str, Union[str, int, float, enum.Enum, list[str], pandas.DataFrame, dict[str, Union[float, pandas.DataFrame]]]] | None = None) None[source]
write_to_file(overwrite_existing: bool = False, new_file_location: str | None = None) None

Write dynamic property data to file.

to_string() str[source]

Create string with separator data in Nexus file format.

read_properties() None[source]

Read Nexus Separator file contents and populate NexusSeparatorMethod object.