Skip to content

CPMG fitting fails with "ValueError: Calculation stopped" #257

Closed Answered by gbouvignies
mrag-work asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. You've set error = "duplicates" in your experiment configuration.
  2. With identical duplicate values, the calculated uncertainty becomes zero.
  3. This causes a division by zero when computing the chi-square value, leading to the fit failure.

To fix this:

  1. Open your experiments.toml file.
  2. Find the error field in the [data] section.
  3. Change it from "duplicates" to "file":
[data]
path  = "../data/600MHz/"
error = "file"

This will make ChemEx use the error values from your d…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mrag-work
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants