Mondaic

salvus.flow.collections.data_proxies

salvus.flow.collections.data_proxies salvus flow collections data_proxies

Concrete data proxy implementations.

Classes

BaseDataProxy

class BaseDataProxy(abc.ABC):
    def __init__(self, config: dict): ...

Helper class that provides a standard way to create an ABC using inheritance.

Init.

Parameters
  • config dict — The configuration dictionary.
Attributes
config_schema voluptuous.Schema

Schema the configuration must adhere to. Must be set by child classes.

name str

Name of the data proxy. Must be set.

Methods
compute_hash()
def compute_hash(self) -> str: ...

Compute a hash to uniquely identify the data proxy. Must be fast as will potentially be called quite a bit.

Returns str
get_data()
def get_data(self, event_name: str) -> xr.Dataset: ...

Main function of the data proxy returning an xarray dataset for any event.

Parameters
  • event_name str — The event name.
Returns xr.Dataset

Submodules