CPMG fitting fails with "ValueError: Calculation stopped" #257
-
Greetings, I am attempting to fit CPMG data. ChemEx seems to have no issues reading the data but cannot fit the data. I do not believe this is related to parameters (initial values, etc.) of fitting.
ChemEx version: 2024.5.3 I have attached the entire chemex directory here for troubleshooting. Any pointers is much appreciated. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello @mrag-work, The issue appears to be related to missing chemical shift information for the resonances you're analyzing. In the To resolve this, please add the following to your [CS_A]
A1CD1 = 12.255
A2CD1 = 13.745 Replace these values with the actual chemical shifts of your resonances. After making this change, try running the fit again. This should provide ChemEx with the necessary information to properly calculate the offsets and proceed with the fitting process. If you continue to experience issues after making this change, please don't hesitate to reach out with the updated results or any new error messages. Let me know if you need any further clarification or assistance! |
Beta Was this translation helpful? Give feedback.
-
Hello @gbouvignies , Thank you for your reply. My apologies. I had the wrong file in the uploaded tarball. Here is the correct
Here is the result of the fitting -
|
Beta Was this translation helpful? Give feedback.
-
Hello @mrag-work, I think I've identified the issue and have a solution for you. The problem stems from your profiles containing duplicate points with identical values, which isn't typically expected. Here's what's happening:
To fix this:
[data]
path = "../data/600MHz/"
error = "file" This will make ChemEx use the error values from your data file instead of calculating them from duplicates. Try running the fit again with this change. It should work without the ValueError. Thank you for bringing this to my attention. I'll look into adding checks for this situation in future ChemEx versions. If you have any questions or encounter further issues, please let me know. Good luck with your analysis! |
Beta Was this translation helpful? Give feedback.
-
Hi @gbouvignies Changing the Thank you very much! Much appreciated. I have marked your response as the answer. |
Beta Was this translation helpful? Give feedback.
Hello @mrag-work,
I think I've identified the issue and have a solution for you. The problem stems from your profiles containing duplicate points with identical values, which isn't typically expected. Here's what's happening:
error = "duplicates"
in your experiment configuration.To fix this:
experiments.toml
file.error
field in the[data]
section."duplicates"
to"file"
:This will make ChemEx use the error values from your d…