rhat.alternate_trees_cnt += 1
// Condition to replace alternate tree
elif self._alternate_tree is not None and self._alternate_tree.is_null_error() is False:
if self.get_error_width() > ERROR_WIDTH_THRESHOLD \
and self._alternate_tree.get_error_width() > ERROR_WIDTH_THRESHOLD:
old_error_rate = self.get_error_estimation()
alt_error_rate = self._alternate_tree.get_error_estimation()
After Change
rhat.alternate_trees_cnt += 1
// Condition to replace alternate tree
elif self._alternate_tree is not None and notself._alternate_tree.is_null_error():
if self.get_error_width() > ERROR_WIDTH_THRESHOLD \
and self._alternate_tree.get_error_width() > ERROR_WIDTH_THRESHOLD:
old_error_rate = self.get_error_estimation()