Closed ZhouChaoCN closed 4 years ago
Hi,
What programming language is this written in??
C#, Visual Studio 2017.
You are using the latest stable release xraylib-3.3.0-win64.exe?
I have tried the following three versions: xraylib-3.1.0-win32.exe xraylib-3.3.0-win32.exe xraylib-3.3.0-win64.exe The results are the same.
I think you need to use CompoundData.SymbolToAtomicNumber
:
Yes!That's right, thank you for your guidance. There is another question.
ElementData ED1 = XrayLib.Instance.GetElementData(38); //ED1 = {38, Strontium, Sr , 87.62, 5, 2, 2.54 ElementData ED2 = XrayLib.Instance.GetElementData(48);//ED2 = {48, Cadmium, Vd, 112.411, 5, 12, 8.65}
“Sr ”has an extra space. “Vd” should be “Cd”.
Is there another function available, just like the one above?
Those are bugs... I will make sure they are fixed for the next release.
Many thanks for reporting this!
OK,look forward to the next release. Xraylib has brought me great convenience and help. Thank you for your hard work.
Just got confirmation from the person building the .NET bindings that it will be fixed in the next release.
Thanks again for the bug report!