xraypy/xraylarch

multiple set fitting doesn't capture the fitting parameters correctly on Linux system

Opened this issue · 2 comments

Dear Xraylarch community,
I'm using Larch to fit multiple datasets at the same time. It works well on my windows 11 computer. However, it doesn't work correctly on my linux computer(Ubuntu 22.04.3 LTS).
I implemented the fitting by using the Cu example in Larch example folder as an example. Instead of using the same parameters for all datasets, I assigned different variables for Einstein temperature, denoted theta1, theta2, and theta3, and set them to vary, as shown in the picture below.
image
However, I got the result only theta3 is in the vary mod, but the program automatically to turn theta1 and theta2 to the fixed mod. This doesn't happen on my Windows computer. Here is the report:
image

In addition, I attemped to add the fix_unused_variables=False option in feffit function.
image
Although a warning was prompted to say "Feffit Warning: unused variables: theta1, theta2", the fitting is running successfully without misunderstanding parameters:
image

I'm really curious what happens in the codes. Is any different setting for Linux and Windows? In the attachment, I send all the files I used for the test as a compressed file.

multi_fitting.zip

Best regards,
Kaifeng Zheng

@kaifengZheng Thanks for the report and sorry for the trouble. I can confirm that I see that too. I think I have a fix, but want to run some more tests. I hope to get a fix post later today or tomorrow.

Thank you very much, Matt!