seismometer.data.loader.SeismogramLoader.load_data

SeismogramLoader.load_data(prediction_obj=None, event_obj=None)

Entry point for loading data for a Seismogram session.

Can optionally accept a prediction and event frame that are prioritized over loading from configuration.

Parameters:
  • prediction_obj (pd.DataFrame, optional) – an optional pre-loaded predictions dataframe, if None then will load from configuration, by default None.

  • event_obj (pd.DataFrame, optional) – an optional pre-loaded events dataframe, if None then will load from configuration, by default None.

Returns:

the loaded and merged dataframe for a Seismogram session.

Return type:

pd.DataFrame