NumericalInverse.py
def _calculate_final_error(self) -> float:
        """
        Determining error value for this simulation at its end
        """

        # TODO: review this, as it might not be correct
        calculated_heatflux = self.HeatFlux
        experiment_heatflux = np.interp(self.t, self.Exp_data.t_data, self.Exp_data.q_data)

        # Determining the shorter length, to unify the sizes
        min_length = min(len(calculated_heatflux), len(experiment_heatflux))

        error = np.sum(abs(calculated_heatflux[:min_length] - experiment_heatflux[:min_length]))/min_length
        return round(error, 3)

        Determining error value for this simulation at its end
        
Determining error value for this simulation at its end
Determining error value for this simulation at its end
def _calculate_final_error(self) -> float:
        calculated_heatflux = self.HeatFlux
        experiment_heatflux = np.interp(self.t, self.Exp_data.t_data, self.Exp_data.q_data)
        min_length = min(len(calculated_heatflux), len(experiment_heatflux))
        error = np.sum(abs(calculated_heatflux[:min_length] - experiment_heatflux[:min_length]))/min_length
        return round(error, 3)
def _calculate_final_error ( self ) -> float : calculated_heatflux = self . HeatFlux experiment_heatflux = np . interp ( self . t , self . Exp_data . t_data , self . Exp_data . q_data ) min_length = min ( len ( calculated_heatflux ) , len ( experiment_heatflux ) ) error = np . sum ( abs ( calculated_heatflux [ : min_length ] - experiment_heatflux [ : min_length ] ) ) / min_length return round ( error , 3 )
Determining error value for this simulation at its end
Determining error value for this simulation at its end
"""
        Determining error value for this simulation at its end
        """ # TODO: review this, as it might not be correct # Determining the shorter length, to unify the sizes
self