seismometer.data.loader.loader_factory

seismometer.data.loader.loader_factory(config, post_load_fn=None)

Construct a SeismogramLoader from the provided configuration.

Parameters:
  • config (ConfigProvider) – The loaded configuration object

  • post_load_fn (ConfigFrameHook, optional) – A callable taking a ConfigProvider and the fully loaded dataframe and returning a dataframe. Used to allow any custom manipulations of the Seismogram dataframe after all other load steps complete. WARNING: This can completly overwrite/discard the daframe that was loaded.

Returns:

Instance of the SeismogramLoader class, with load_data() method ready to be called

Return type:

SeismogramLoader