You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@newville a colleague found a bug in Larix when plotting selected groups which have different types of normalization (e.g. polynomial and mback). The bug comes from (and following):
If fact, the current behavior in Larix when plotting normalized selected groups depends on the current clicked group, that may be a group out of the selected ones. In my opinion, this is a bug.
My expected behavior would be that a normalization function, whatever method is used (standard, mback, area, whatever) should write the norm array of the group, while the plotting function should only plot this attribute, without repeating the normalization itself or using different array names. What do you think?
The text was updated successfully, but these errors were encountered:
@maurov I agree: this is sort of messy. It is nice to have multiple normalization options, so maybe have norm_poly and norm_mback available for comparison. But norm should be the selected one choice. I'll check this out.
This is somehow related to #531. In fact, the current implementation done to fix #526, that is, having a norm_mback attribute and force this normalization all the time is not the best solution, in my opinion. In my view, the norm attribute should be unique, whatever the method is used to normalize the data. In this way one can plot/use normalized spectra even if they are normalized by different methods. I would propose to add the norm_method attribute and use @property decorator in the Group object to return the correct one. To show my idea, this could be something like:
@newville a colleague found a bug in Larix when plotting selected groups which have different types of normalization (e.g.
polynomial
andmback
). The bug comes from (and following):xraylarch/larch/wxxas/xasnorm_panel.py
Line 587 in ae6ed79
If fact, the current behavior in Larix when plotting normalized selected groups depends on the current clicked group, that may be a group out of the selected ones. In my opinion, this is a bug.
My expected behavior would be that a normalization function, whatever method is used (standard, mback, area, whatever) should write the
norm
array of the group, while the plotting function should only plot this attribute, without repeating the normalization itself or using different array names. What do you think?The text was updated successfully, but these errors were encountered: