The code presents a pipeline for performing data analysis of experiments on thin metallic films at the KMC-II beamline of the Bessy II Synchrotron (https://www.helmholtz-berlin.de/pubbin/igama_output?modus=einzel&sprache=de&gid=1615&typoid=35512). The sin²ψ method is implemented using a weighted linear regression, where the fitting errors of the fitted patterns serve as weights.
The code is citable via Zenodo
The code allows for the evaluation of the following experiments.
- Evaluate
$\text{in situ}^2$ straining experiments to correlate the stress measured via sin²ψ with the strain from an Anton Paar tensile stage (https://www.anton-paar.com/ph-en/products/details/tensile-stage-ts-600/) with the electrical data measured via a Keythley. - Evaluate heating experiments to correlate the stress measured via sin²ψ with the temperature from an Anton Paar heating stage (https://www.anton-paar.com/ph-en/products/details/tensile-stage-ts-600/https://www.anton-paar.com/corp-en/products/details/domed-hot-stage-for-four-circle-goniometers-dhs-1100/).
All functions are stored in the bessy_kmc_II_master.ipynb file. The environment_BESSY-II.yml file enables the installation of all necessary packages to run the code correctly on your machine.
Example evaluations are given in Jupyter Notebooks. Further examples and corresponding data can be found at Zenodo (10.5281/zenodo.17312295)
C.O.W. T. gratefully acknowledges the financial support under the scope of the UFO program (SPM - PN 3022) by the Austrian State of Styria (Land Steiermark - Abteilung 12 Wirtschaft, Tourismus, Wissenschaft und Forschung). The help of https://github.com/dgehringer at the very beginning of implementing parts of the fitting routine is acknowledged. Parts of the code were based on a Mathematica evaluation routine by Christoph Kirchlechner, who is hereby acknowledged.

