Author Topic: PJSR StarAlignment instance error handling  (Read 2693 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
PJSR StarAlignment instance error handling
« on: 2012 March 15 11:59:53 »
I have a script which executes a StarAlignment instance with its 'mode' property equal to 'StarAlignment.prototype.DrawStars' and its 'onError' property equal to 'StarAlignment.prototype.Continue'.

If the instance finds no stars, an error dialog with the string "No stars found" is displayed, a console message "<* failed *>" is written, and my script is terminated.

StarAlignment would be more usable if it did not display an error dialog and if it proceeded to generate its detected star map as usual, just with no small crosses drawn, when 'onError' is set to 'Continue'.

My planned workaround (not yet implemented) is to add one synthetic star to the input image so that StarAlignment always finds at least one star.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PJSR StarAlignment instance error handling
« Reply #1 on: 2012 April 02 08:42:42 »
Hi Mike,

I completely agree. I'll release an update to the StarAlignment process as soon as possible, with this and other similar issues resolved. Thank you.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: PJSR StarAlignment instance error handling
« Reply #2 on: 2012 April 02 08:50:41 »
Thanks Juan. This fix should also allow better error messages in ImageSolver.