-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make spectrum summary plot #138
Conversation
Pull Request Test Coverage Report for Build 6273713403
💛 - Coveralls |
if not np.any([line.fitted for line in self.lines.lines]): | ||
fwhm_func = interp1d(self.chromatic_psf.table['lambdas'], | ||
self.chromatic_psf.table['fwhm'], | ||
fill_value=(parameters.CALIB_PEAK_WIDTH, parameters.CALIB_PEAK_WIDTH), | ||
bounds_error=False) | ||
detect_lines(self.lines, self.lambdas, self.data, self.err, fwhm_func=fwhm_func, | ||
calibration_lines_only=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole block feels a bit surprising/scary to me. If there's nothing fitted yet, I think failing/returning False
or something would be fine, or just plotting what you can too, without the calibrations applied, but actually detecting lines inside a plotting function is a bit weird, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but the fitted results are not stored in the .fits files. So when I load a Spectrum from a FITS I need to refit the lines. Should not be a problem for AuxTel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, fine by me 🙂
No description provided.