Cryptic error message in new esfit

General forum for EasySpin: questions, how to's, etc.
Post Reply
thanasis
Local Expert
Posts: 242
Joined: Thu Jan 21, 2016 6:28 am
Location: Strasbourg

Cryptic error message in new esfit

Post by thanasis »

I just started to dabble with the new esfit. I am trying to modify an existing script using an external function.

After the basic syntax changes were done, the fitting window pops up, the fitting intervals and options are recognized correctly, but when I launch the fit, I get an error message:

Code: Select all

Simulation function error
Interval bound arguments must be real and numeric.

The message is not very informative. Can anyone point me to the right direction?

Thanks!

thanasis
Local Expert
Posts: 242
Joined: Thu Jan 21, 2016 6:28 am
Location: Strasbourg

Re: Cryptic error message in new esfit

Post by thanasis »

OK, problem corrected.

I just needed to correct rescale to rescaledata in the helper function!

Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Cryptic error message in new esfit

Post by Stefan Stoll »

Glad you found the fix. MATLAB introduced a rescale function after EasySpin already had introduced a rescale function - resulting in name clashes and broken code. Unfortunately, the only fix for EasySpin was to rename the function to rescaledata.

Post Reply