saving

ecodynelec.saving.save_dataset(data, savedir, name, target=None, freq='H')[source]

Function to save the datasets with information of the frequency.

Parameters:
  • data (pandas.DataFrame) – the dataset to save

  • savedir (str) – the directory where to save

  • name (str) – the name of the file (excluding extension and frequency info)

  • target (str, default to None) – tag of target country, to be added to the name if given.

  • freq (str, default to ‘H’) – the frequency

ecodynelec.saving.save_impact_vector(impact_matrix, savedir, cst_import=False, residual=False)[source]

Function to save the impact matrix.

Parameters:
  • impact matrix (pandas.DataFrame) – the table with the impact factors

  • savedir (str) – the directory where to save

  • cst_import (bool, default to False) – if constant exchange impacts are considered

  • residual (bool, default to False) – if a residual is considered