jveitchmichaelis / rascal

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

Constrain polyfit for matching peaks #8

Closed jveitchmichaelis closed 2 years ago

jveitchmichaelis commented 4 years ago

During the final peak/line fitting (after RANSAC) the polyfit is not constrained (e.g. by wavelength range) which can cause really weird solutions.

Should be straightforward using one of scipy's minimisation routines that allows parameter bounds.

cylammarco commented 2 years ago

merge into #45.