Author Topic: Problem entering Approval expression in Subframe Selector on Linux  (Read 2209 times)

Offline magnusl

  • PixInsight Enthusiast
  • **
  • Posts: 84
Hi!

I'm trying to enter an expression in the Subframe selector, for Approval, but keep getting an error message when I try and parse it. I copy-paste, or type in (no matter which) the follownigng:

(10*(1-(FWHM-5.209)/(6.360-5.209)) + 10*(1-(Eccentricity-0.6066)/(0.7352-0.6066)) + 30*(SNRWeight-2.178)/(2.343-2.178)) + 50

But when trying to parse it I get the following error:

Invalid subframe approval expression: relational operator expected: ... + 50|

It is as if there is a token in the end that I cannot delete. I'm running Ubuntu 16.04. Any ideas on how to manage this?

Magnus

Offline jshortt

  • Newcomer
  • Posts: 36
Re: Problem entering Approval expression in Subframe Selector on Linux
« Reply #1 on: 2016 September 16 17:55:12 »
It's looking for a condition. I tried

(10*(1-(FWHM-5.209)/(6.360-5.209)) + 10*(1-(Eccentricity-0.6066)/(0.7352-0.6066)) + 30*(SNRWeight-2.178)/(2.343-2.178)) + 50 > 100

and it accepted it.

Offline magnusl

  • PixInsight Enthusiast
  • **
  • Posts: 84
Re: Problem entering Approval expression in Subframe Selector on Linux
« Reply #2 on: 2016 September 17 04:06:07 »
Thanks!

Actually, what I wanted to do was to enter the expression in Weighting, not Approval.... sorry for temporary brain damage over here.

Magnus