Open kaifengZheng opened 5 months ago
@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!
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.
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](https://github.com/xraypy/xraylarch/assets/48105165/0a696d27-38d4-4a00-bd91-b802ccae1c85)
In addition, I attemped to add the
Although a warning was prompted to say "Feffit Warning: unused variables: theta1, theta2", the fitting is running successfully without misunderstanding parameters:
![image](https://github.com/xraypy/xraylarch/assets/48105165/13864f0c-4fe2-41bd-bcf0-841c16c23d87)
fix_unused_variables=False
option in feffit function.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