Added chi2 to fit results (#131)

- fit_gaus and fit_pol1 now return a dict
- calculate chi2 after fit
- cleaned up code
This commit is contained in:
Erik Fröjdh
2025-02-18 21:13:27 +01:00
committed by GitHub
parent 8abfc68138
commit 6a83988485
10 changed files with 291 additions and 255 deletions

View File

@ -49,11 +49,10 @@ set(PYTHON_EXAMPLES
examples/fits.py
)
# Copy the python examples to the build directory
foreach(FILE ${PYTHON_EXAMPLES})
configure_file(${FILE} ${CMAKE_BINARY_DIR}/${FILE} )
message(STATUS "Copying ${FILE} to ${CMAKE_BINARY_DIR}/${FILE}")
endforeach(FILE ${PYTHON_EXAMPLES})