rgibson_at_email.domain.hidden>Have I done something wrong? Is there a way to predict the error will occur? [...] >chisqr= 6.0208e+01: > voigt(4).norm= 3.07185834e+07 voigt(4).energy= 4.48342156e-06 > voigt(4).fwhm= 1.57040638e-01 voigt(4).vtherm= 4.62511027e+03 > >*** Error: function evaluation failed >S-Lang Error: Intrinsic Error: Error while executing __isis_tmp_ffname__ >lmdif1: algorithm estimates that the relative error in the sum of squares is at >most tol. I do not think that you can always predict that an error will occur in any particular case. However, you should assume that an error may occur and prepare for that accordingly. In the case of fit_counts, you can use something like try { s = fit_counts (); . . } catch AnyError: { . % handle the error, e.g., set_fit_method ("marquardt"); s = fit_counts (); . . } The above code assumes that you are using slang-2. I hope this helps. --John ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Fri May 11 2007 - 11:41:57 EDT
This archive was generated by hypermail 2.2.0 : Fri May 11 2007 - 18:20:45 EDT