Commit 62cbb74b authored by Damien Naudet's avatar Damien Naudet

Renamed LEASTSQ to GAUSSIAN

parent 151f88e2
......@@ -22,7 +22,7 @@ n_proc = None
results, success = peak_fit.peak_fit(qspace_f,
indices=indice,
fit_type=peak_fit.FitTypes.LEASTSQ,
fit_type=peak_fit.FitTypes.GAUSSIAN,
n_proc=n_proc)
with open(result_file, 'w+') as res_f:
......
......@@ -158,8 +158,8 @@ class FitWidget(Qt.QWidget):
containing the results.
"""
FitTypes = OrderedDict([('LEASTSQ', FitTypes.LEASTSQ),
('CENTROID', FitTypes.CENTROID)])
FitTypes = OrderedDict([('Gaussian', FitTypes.GAUSSIAN),
('Centroid', FitTypes.CENTROID)])
__sigFitDone = Qt.Signal()
......
......@@ -68,7 +68,7 @@ class PeakFitter(Thread):
def __init__(self,
qspace_f,
fit_type=FitTypes.LEASTSQ,
fit_type=FitTypes.GAUSSIAN,
indices=None,
n_proc=None,
roi_indices=None):
......@@ -181,7 +181,7 @@ class PeakFitter(Thread):
# # success = np.ndarray((n_indices,), dtype=np.bool)
# # success[:] = True
if fit_type == FitTypes.LEASTSQ:
if fit_type == FitTypes.GAUSSIAN:
fit_fn = gaussian_fit
shared_results = GaussianResults(n_points=n_indices)
if fit_type == FitTypes.CENTROID:
......
......@@ -41,7 +41,7 @@ from .fitresults import FitResult
class FitTypes(object):
ALLOWED = range(2)
LEASTSQ, CENTROID = ALLOWED
GAUSSIAN, CENTROID = ALLOWED
class FitSharedResults(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment