Open WilliamJudge94 opened 5 years ago
Turns out this is the result of the underlying data, the edge jump happens to be relatively high in the background. This motivated the development of a second form of masking, named (contrast mask). @WilliamJudge94 is developing this.
Code was completed with 0646af2f389b9636b7125da58a63c1f3b253a4ba, but the documentation needs a little cleaning up. https://github.com/canismarko/xanespy/commit/40f9779c804c0dba354d83ed56e072ac7e8f8236 added documentation on how to use the contrast mask, and lists one drawback of the absorption edge masking approach. We should list the benefits of XAS edge masking and the benefits and drawbacks of contrast masking.
Using the O K-edge with some ptychography data produces masks that are inverted (maybe?) from what they should be (i.e. 1's mark active material instead of background). We need to review the various edge combinations to make sure they're at least all consistent.
Also, there should be a page in the docs about using masks.