agregator.py
def add(self, thermal_process, thermal_coupling):
        """
        Allow to add a thermal process with its thermal coupling
        :param thermal_process: The thermal process
        :param thermal_coupling: The thermal coupling associate with the thermal process
        """
        if not isinstance(thermal_coupling, ThermalCoupling) or thermal_coupling is None:
            raise RuntimeError('Missing or invalid thermalCoupling reference.')

        if thermal_process is not None:
            if isinstance(thermal_process, TimeSeriesThermalProcess):
                self._outside_process = thermal_process
                self._outside_coupling = thermal_coupling
                return
            else:
                raise RuntimeError('Can use only TimeSeriesThermalProcess')
#            if isinstance(thermal_process, ThermalProcess):
#                self._external_process.append(thermal_process)
#                self._external_coupling.append(thermal_coupling)
#                return

        raise RuntimeError('Missing or invalid thermalProcess or thermalCoupling reference.')

        Allow to add a thermal process with its thermal coupling
        :param thermal_process: The thermal process
        :param thermal_coupling: The thermal coupling associate with the thermal process
        
Allow to add a thermal process with its thermal coupling
Allow to add a thermal process with its thermal coupling
def add(self, thermal_process, thermal_coupling):
        if not isinstance(thermal_coupling, ThermalCoupling) or thermal_coupling is None:
            raise RuntimeError('Missing or invalid thermalCoupling reference.')
        if thermal_process is not None:
            if isinstance(thermal_process, TimeSeriesThermalProcess):
                self._outside_process = thermal_process
                self._outside_coupling = thermal_coupling
                return
            else:
                raise RuntimeError('Can use only TimeSeriesThermalProcess')
        raise RuntimeError('Missing or invalid thermalProcess or thermalCoupling reference.')
def add ( self , thermal_process , thermal_coupling ) : if not isinstance ( thermal_coupling , ThermalCoupling ) or thermal_coupling is None : raise RuntimeError ( 'Missing or invalid thermalCoupling reference.' ) if thermal_process is not None : if isinstance ( thermal_process , TimeSeriesThermalProcess ) : self . _outside_process = thermal_process self . _outside_coupling = thermal_coupling return else : raise RuntimeError ( 'Can use only TimeSeriesThermalProcess' ) raise RuntimeError ( 'Missing or invalid thermalProcess or thermalCoupling reference.' )
Allow to add a thermal process with its thermal coupling
Allow to add a thermal process with its thermal coupling
"""
        Allow to add a thermal process with its thermal coupling
        :param thermal_process: The thermal process
        :param thermal_coupling: The thermal coupling associate with the thermal process
        """ #            if isinstance(thermal_process, ThermalProcess): #                self._external_process.append(thermal_process) #                self._external_coupling.append(thermal_coupling) #                return
self
thermal_process
The thermal process
The thermal process
thermal_coupling
The thermal coupling associate with the thermal process
The thermal coupling associate with the thermal process