jveitchmichaelis / rascal

RAnsac Assisted Spectral CALibration
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Start fitting with a good set of polynomial #57

Open cylammarco opened 2 years ago

cylammarco commented 2 years ago

Use a set of user-defined polynomials as an "initial condition".

cylammarco commented 2 years ago

It is currently done via setting linear to False in set_ransac_properties, and then supply a set of polynomial coefficients in fit. It doesn't work very well at the moment.

cylammarco commented 2 years ago

There is an experimental method Calibrator._get_candidate_points_poly() that is currently failing. Either fix/extend this or try something else.

match_peaks can also "refit" using the given polynomial, but it only works if the starting condition is already good.