Combine this and fit_panel into one. You duplicate a lot of code, which is not good practice, because it is not well to maintain. _Originally posted by @rettigl in https://github.com/OpenCOMPES/mpes-tools/pull/4#discussion_r2047825507_