examples/fit_image: cleanup, comment

This commit is contained in:
Sebastien Bourdeauducq 2016-04-02 22:43:37 +08:00
parent 6a34a75b99
commit 101101bbc9
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,8 @@
"""Image processing with SciPy example"""
import numpy as np import numpy as np
from scipy.optimize import least_squares from scipy.optimize import least_squares
from scipy import constants from scipy import constants
# from numba import jit
class Fit: class Fit:
@ -81,7 +82,6 @@ class Fit2DGaussParabola(Fit):
# TODO: this is usually smarter, based on self.data and self.meta # TODO: this is usually smarter, based on self.data and self.meta
return [1000, 100, 100, 2000, 4, 4, 2000, 20, 20] return [1000, 100, 100, 2000, 4, 4, 2000, 20, 20]
# @jit
def model(self, param): def model(self, param):
p = self.variables_dict(param) p = self.variables_dict(param)
x, y = self.xy x, y = self.xy