def __init__(self, pvsystem=None, location=None, **kwargs): new_kwargs = _combine_localized_attributes( pvsystem=pvsystem, location=location, **kwargs, ) SingleAxisTracker.__init__(self, **new_kwargs) Location.__init__(self, **new_kwargs)
def __init__(self, pvsystem=None, location=None, **kwargs): # get and combine attributes from the pvsystem and/or location # with the rest of the kwargs if pvsystem is not None: pv_dict = pvsystem.__dict__ else: pv_dict = {} if location is not None: loc_dict = location.__dict__ else: loc_dict = {} new_kwargs = dict( list(pv_dict.items()) + list(loc_dict.items()) + list(kwargs.items())) SingleAxisTracker.__init__(self, **new_kwargs) Location.__init__(self, **new_kwargs)
def __init__(self, pvsystem=None, location=None, **kwargs): # get and combine attributes from the pvsystem and/or location # with the rest of the kwargs if pvsystem is not None: pv_dict = pvsystem.__dict__ else: pv_dict = {} if location is not None: loc_dict = location.__dict__ else: loc_dict = {} new_kwargs = dict(list(pv_dict.items()) + list(loc_dict.items()) + list(kwargs.items())) SingleAxisTracker.__init__(self, **new_kwargs) Location.__init__(self, **new_kwargs)
def __init__(self, staticcpvsystem=None, location=None, **kwargs): # get and combine attributes from the staticcpvsystem and/or location # with the rest of the kwargs if staticcpvsystem is not None: staticcpv_dict = staticcpvsystem.__dict__ else: staticcpv_dict = {} if location is not None: loc_dict = location.__dict__ else: loc_dict = {} new_kwargs = dict( list(staticcpv_dict.items()) + list(loc_dict.items()) + list(kwargs.items())) StaticCPVSystem.__init__(self, **new_kwargs) Location.__init__(self, **new_kwargs)