def process(self): """Performs all the indicator calculations. """ AbstractPopulationPostprocessor.process(self) if self.impact_total is None: self._log_message('%s not all params have been correctly ' 'initialized, setup needs to be called before ' 'process. Skipping this postprocessor' % self.__class__.__name__) else: self._calculate_total() self._calculate_youth() self._calculate_adult() self._calculate_elderly()
def process(self): """Setup parameters parameters and performs all the calculations. """ AbstractPopulationPostprocessor.process(self) if self.impact_total is None or self.female_ratio is None: self._log_message('%s not all params have been correctly ' 'initialized, setup needs to be called before ' 'process. Skipping this postprocessor' % self.__class__.__name__) else: self._calculate_total() self._calculate_females() self._calculate_weekly_hygene_packs() self._calculate_weekly_increased_calories()
def process(self): """Performs all the indicator calculations. """ AbstractPopulationPostprocessor.process(self) if self.impact_total is None: self._log_message( '%s not all params have been correctly ' 'initialized, setup needs to be called before ' 'process. Skipping this postprocessor' % self.__class__.__name__) else: self._calculate_total() self._calculate_youth() self._calculate_adult() self._calculate_elderly()
def process(self): """Setup parameters parameters and performs all the calculations. """ AbstractPopulationPostprocessor.process(self) if self.impact_total is None or self.female_ratio is None: self._log_message( '%s not all params have been correctly ' 'initialized, setup needs to be called before ' 'process. Skipping this postprocessor' % self.__class__.__name__) else: self._calculate_total() self._calculate_females() self._calculate_weekly_hygene_packs() self._calculate_weekly_increased_calories()