-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fitter subclasses no longer work #258
Comments
@markbandstra do you mind finding the last commit where they did work? |
@jvavrek I suspect they never did. I think they were an artifact of before we implemented the simplified model creation through a string list. At that point we changed how models are handled and realized that we only really need a single generic
etc. |
Looks like they worked until 0436e7c In that refactoring, |
@markbandstra Exactly. I think they remained because we haven't moved them to It should be worth thinking about how to define the initial values for such a model though. Maybe parameters could be directly passed in with lower and upper bounds to the constructor of I think it is almost impossible to define a generic two, or three gaussian function, the centroids need to be very clearly defined. |
@cosama we could have |
The subclasses of
Fitter
, namelyFitterGausGaus
,FitterGausGausLine
, andFitterGausGausExp
, no longer work. The failure isThe problem seems to be that they no longer follow the
Fitter
API correctly. It seems that theirmake_model
methods do not get called, instead the base class's_make_model
method is called. The fix seems to be to change theirmake_model
methods to be_make_model
, but they also need to take a dummymodel
argument. That is, instead ofthese need to be
and then they seem to work again.
It seems that the primary utility of these classes is their
_guess_param_defaults
methods, which are very useful when, e.g., multiple gaussians are fit and you want to start them in different portions of the ROI.The text was updated successfully, but these errors were encountered: