This PR implements a generic ImageProfile class, which offers plotting, smoothing and renormalization methods. The main data structure is an astropy table, which stores the coordinate values x_ref or x_min and x_max and the profile data values profile and profile_err.
I agree there's nothing special about this class, that would restrict the use to image based profile measurements. For now I'd like to keep it as is, but let's keep in mind the class could be used for acceptance or other profiles as well...
I think I would prefer to only support float width in pix here, because smoothing is done in pix.
If you keep the quantity width, you should document that width = self.x_ref - self.x_ref is used to convert to float.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.