oasislmf.pytools.data_layer.footprint_layer¶
Attributes¶
Classes¶
Defines the different types of operations supported via bytes. To be passed through TCP port first to tell the |
|
This class is responsible for accessing the footprint data via TCP ports. |
|
This class is responsible for connecting to the footprint server via TCP. |
Functions¶
|
Module Contents¶
- class oasislmf.pytools.data_layer.footprint_layer.OperationEnum[source]¶
Bases:
enum.Enum
Defines the different types of operations supported via bytes. To be passed through TCP port first to tell the server what type of operation is required.
- class oasislmf.pytools.data_layer.footprint_layer.FootprintLayer(storage: oasis_data_manager.filestore.backends.base.BaseStorage, total_expected: int, ignore_file_type: Set[str] = set(), df_engine='oasis_data_manager.df_reader.reader.OasisPandasReader')[source]¶
This class is responsible for accessing the footprint data via TCP ports.
- Attributes:
static_path (str): path to the static file to load the data ignore_file_type (Set[str]): collection of file types to ignore when loading file_data (Optional[Footprint]): footprint object to load socket (Optional[socket.socket]): the TCP socket in which data is sent count (int): the number of processes currently relying on the server total_expected (int): the total number of reliant processes expected total_served (int): the total number of processes that have ever registered through the server’s lifetime
- file_data: oasislmf.pytools.getmodel.footprint.Footprint | None = None[source]¶
- socket: socket.socket | None = None[source]¶
- class oasislmf.pytools.data_layer.footprint_layer.FootprintLayerClient[source]¶
This class is responsible for connecting to the footprint server via TCP.