ppcpy.io.loadConfigs#

Functions

checkPollyConfigDict

Check and potentially modify polly config dict

fix_indexing

getPollyConfigfromArray

function to load the config for the time identified

loadPicassoConfig

load the general Picasso config file

loadPollyConfig

readPollyNetConfigLinkTable

ppcpy.io.loadConfigs.loadPicassoConfig(picasso_config_file, picasso_default_config_file)[source]#

load the general Picasso config file

Parameters:
  • picasso_config_file (str or path) – the specific config file

  • picasso_default_config_fil (str or path) – the default (template) file

Return type:

picasso_config_dict

ppcpy.io.loadConfigs.readPollyNetConfigLinkTable(polly_config_table_file, timestamp, device)[source]#
ppcpy.io.loadConfigs.fix_indexing(config_dict, keys=['first_range_gate_indx', 'bgCorRangeIndx', 'bgCorRangeIndxLow', 'bgCorRangeIndxHigh', 'LCMeanMinIndx', 'LCMeanMaxIndx'])[source]#
ppcpy.io.loadConfigs.getPollyConfigfromArray(polly_config_array, picasso_config_dict)[source]#

function to load the config for the time identified

aim is to declutter the runscript

Parameters:
  • polly_config_array (pandas dataframe) – selected line form the links.xlsx

  • picasso_config_dict (dict) – general picasso config

Returns:

polly_config_dict

Return type:

dict

ppcpy.io.loadConfigs.loadPollyConfig(polly_config_file, polly_default_config_file)[source]#
ppcpy.io.loadConfigs.checkPollyConfigDict(polly_config_dict: dict) dict[source]#

Check and potentially modify polly config dict

Parameters: - polly_config_dict (dict): polly config dict to be checked Output: - new_polly_config_dict (dict): checked (and modified) polly config dict