Loading peak_integration.py +7 −0 Original line number Diff line number Diff line Loading @@ -641,6 +641,13 @@ class Gaussian(object): self.nangles = None def check_parameters(self, params): params = np.asarray(params).copy().ravel() if params.size!=self.nparams: raise ValueError(f"`params` array is of wrong size, must have `len(params) = 1 + ncnt + ncov + nskew = {self.nparams}`, got {len(params)}") return params def rotation_matrix(self, params): ''' Compute rotation matrix from parameters https://en.wikipedia.org/wiki/Givens_rotation#Table_of_composed_rotations Loading Loading
peak_integration.py +7 −0 Original line number Diff line number Diff line Loading @@ -641,6 +641,13 @@ class Gaussian(object): self.nangles = None def check_parameters(self, params): params = np.asarray(params).copy().ravel() if params.size!=self.nparams: raise ValueError(f"`params` array is of wrong size, must have `len(params) = 1 + ncnt + ncov + nskew = {self.nparams}`, got {len(params)}") return params def rotation_matrix(self, params): ''' Compute rotation matrix from parameters https://en.wikipedia.org/wiki/Givens_rotation#Table_of_composed_rotations Loading