PixInsight Forum (historical)

PixInsight => Bug Reports => Topic started by: aworonow on 2019 January 08 06:50:53

Title: SubframeSelector does not handel repaired 'nan'
Post by: aworonow on 2019 January 08 06:50:53
I entered an equation that cause the all the weights to become 'nan'. Repairing the equation (setting it to 1-.5) and pressing the right arrow in the Expression window then causes the console to report "*** Error [001]: ReferenceError: nan is not defined" and no execution." Clearing the measurement table and remeasuring does not clear the nan weights, and the same error persists.
Even clearing the Measurements Table and the subframes, reload and remeasuring, the nan is still there (Cached?).
And, even exiting the procedure and coming back in, everything is restored, including the nan's.

Only by clearing all three windows, exiting the procedure and coming back in, can one remove the dreaded 'nan'.

Alex
Title: Re: SubframeSelector does not handel repaired 'nan'
Post by: Juan Conejero on 2019 January 08 06:57:00
Hi Alex,

The expressions must be valid JavaScript. Try with Number.NaN. Let me know if it works this way.
Title: Re: SubframeSelector does not handel repaired 'nan'
Post by: aworonow on 2019 January 08 07:16:26
I guess I was not entirely clear. The 'nan' is written by the program when my equation is in error. After it is written into the Weight column, the problem arises that the program appears to try to read the field before calculating an new equation, and throws the error I reported.
The only field I change is the Expression.

Alex
Title: Re: SubframeSelector does not handel repaired 'nan'
Post by: smccully on 2019 October 05 23:19:43
I am seeing this error as well, in the latest release