jkrogager / VoigtFit

Python code to fit absorption lines semi-interactively
http://voigtfit.readthedocs.io/
MIT License
28 stars 12 forks source link

No error output and change plotting region #11

Closed keheintz closed 6 years ago

keheintz commented 7 years ago

After running the code several times with no problems, it now no longer report errors on the measurements of v, b and logN -- any idea how to fix this? An example: SiII 1526 v = 0.9 +/- 0.0 20.11 +/- 0.00 16.775 +/- 0.000 v = 84.0 +/- 0.0 26.89 +/- 0.00 14.021 +/- 0.000 v = -234.0 +/- 0.0 25.98 +/- 0.00 13.784 +/- 0.000 v = -69.8 +/- 0.0 100.13 +/- 0.00 13.981 +/- 0.000

CIV 1548, 1550 v = 44.3 +/- 0.0 98.77 +/- 0.00 14.841 +/- 0.000 v = 22.1 +/- 0.0 68.91 +/- 0.00 15.163 +/- 0.000 v = -196.4 +/- 0.0 4.61 +/- 0.00 14.235 +/- 0.000 v = -49.6 +/- 0.0 22.00 +/- 0.00 15.516 +/- 0.000

Also, is there a way to fix the y-axis scaling on the plotting region to e.g. only show 0,1.5 or likewise?

Thanks!

jkrogager commented 6 years ago

The plotting is fixes and the user can now plot the fit results using the output *.reg files. The zero error is usually caused by overfitting (too many components) or a bad noise spectrum. This should work in the new version. The code now prints an exit statement from the fit to guide the user.