seismometer.data.loader.prediction.dictionary_types

seismometer.data.loader.prediction.dictionary_types(config, dataframe)

Convert the loaded predictions dataframe to the expected types.

Prioritizes the types defined in the configuration dictionary, then falls back to assumed_types.

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

  • dataframe (pd.DataFrame) – The loaded predictions dataframe.

Returns:

The predictions dataframe with adjusted types.

Return type:

pd.DataFrame

Raises:

ConfigurationError – If any columns cannot be converted to the expected types.