process_settings

threadcount.fit.process_settings(default_settings, user_settings_string='')[source]

Combine the default settings with any user settings.

Process the user settings and override the default if a corresponding user setting exists. Print a warning if a there is a missing user setting.

Parameters:
  • default_settings (dict) – A dictionary containing all required settings for the script to run.

  • user_settings_string (str, optional) – A string (created by json.dumps(dictionary) containing user settings.), by default “”

Returns:

A simple namespace containing the settings, for easier access to attributes.

Return type:

types.SimpleNamespace