コード例 #1
0
ファイル: fit.py プロジェクト: mdeceglie/pvpro
    def model(x):
        p = model_kwargs.copy()
        n = 0
        for param in fit_params:
            p[param] = x_to_p(x[n], param)
            n = n + 1
        voltage_fit, current_fit = pv_system_single_diode_model(**p)

        # For clipped points, need to calculate

        return voltage_fit, current_fit
コード例 #2
0
    def model(x):
        """
        Return vdc, idc operating point given the fixed parameters.

        Parameters
        ----------
        x

        Returns
        -------
        voltage_fit

        current_fit

        """
        # TODO: Maybe there is a better way to pass in the extra args.
        p = model_kwargs.copy()
        n = 0
        for param in fit_params:
            p[param] = x_to_p(x[n], param)
            n = n + 1
        voltage_fit, current_fit = pv_system_single_diode_model(**p)

        return voltage_fit, current_fit