317d0639b0a61067a27d940b6fc97e421b900434,hyperspy/_components/pes_core_line_shape.py,PESCoreLineShape,function,#PESCoreLineShape#Any#,61

Before Change


        a2 = self.FWHM.value
        a3 = self.ab.value
        k = self.shirley.value
        f = self.factor * a0 * \
            np.exp(-1 * math.log(2) * ((x - (a1 - a3)) / a2) ** 2)
        if self.Shirley:
            cf = np.cumsum(f)
            cf = cf[-1] - cf
            self.cf = cf
            return cf * k + f
        else:
            return f

    def grad_A(self, x):
        return self.function(x) / self.A.value

After Change


            return f

    def function(self, x):
        return self._function(x, self.A.value,
                              self.origin.value,
                              self.FWHM.value,
                              self.ab.value,
                              self.shirley.value)

    def function_nd(self, axis):
        %s
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: hyperspy/hyperspy
Commit Name: 317d0639b0a61067a27d940b6fc97e421b900434
Time: 2020-09-08
Author: eric.prestat@gmail.com
File Name: hyperspy/_components/pes_core_line_shape.py
Class Name: PESCoreLineShape
Method Name: function


Project Name: hyperspy/hyperspy
Commit Name: 9aacabf011b30b9361f15ab68ff4110de0a59e80
Time: 2018-08-13
Author: eric.prestat@gmail.com
File Name: hyperspy/_components/gaussian.py
Class Name: Gaussian
Method Name: function


Project Name: hyperspy/hyperspy
Commit Name: 10fd99a3313d4f8e66e0eb987ff93300bc656314
Time: 2020-09-08
Author: eric.prestat@gmail.com
File Name: hyperspy/_components/scalable_fixed_pattern.py
Class Name: ScalableFixedPattern
Method Name: function