tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
120 stars 54 forks source link

Address a case where energy E is less than the lowest value in the energies array of Kissel's cross section Fixes https://github.com/tschoonj/xraylib/issues/187 #191

Closed shirokobrod closed 2 years ago

shirokobrod commented 2 years ago

if(ln_E < E_Photo_Partial_Kissel[Z][shell][0]), then the function will extrapolate for missing energies. It will extrapolate in case of original code when EdgeEnergy < E < EdgeEnergy_Kissel and when energy E is between Edge and the lowest value in the energies array of Kissel's cross section .

tschoonj commented 2 years ago

@shirokobrod many thanks for opening the pull request!

Can you update the unit tests with the new values as well?

tschoonj commented 2 years ago

@shirokobrod almost there, the Java unit test needs that new value as well 😄

tschoonj commented 2 years ago

Many thanks @shirokobrod !