Function get_parameters

Synopsis

def get_parameters(self, copy=True)

Description

Returns the config attributes. Doesn't include Anyfig built-ins

Source

Lines 49-56 in anyfig/config_functions.py.

def get_parameters(self, copy=True):
  ''' Returns the config attributes. Doesn't include Anyfig built-ins '''
  default_attrs = figutils.default_config_attributes()
  params = {k: v for k, v in vars(self).items() if k not in default_attrs}
  if copy:
    return deepcopy(params)
  return params





Add Discussion as Guest

Log in