Author Topic: Bug in recently updated BasicCCDParameters script?  (Read 1332 times)

Offline jrista

  • Newcomer
  • Posts: 11
Bug in recently updated BasicCCDParameters script?
« on: 2016 November 18 11:59:04 »
It seems the BasicCCDParameters script was updated somewhat recently, adding the ability to choose an ROI. I have found a few bugs with it. First, it seems that in one line of code, `this.` was being used to reference variables, such as x0/y0 and width/height, that did not need a context. This resulted in the following error message in the console:

Code: [Select]
Processing script file: C:/Program Files/PixInsight/src/scripts/CCDParameters.js
CCD Parameters Script started
** Warning [162]: C:/Program Files/PixInsight/src/scripts/CCDParameters.js, line 153: reference to undefined property this.x0

I edited the script and removed `this.` from each variable of that line, and it corrected the error.

Offline astrochoupe

  • Newcomer
  • Posts: 3
    • Flickr's galery
Re: Bug in recently updated BasicCCDParameters script?
« Reply #1 on: 2017 December 30 13:58:17 »
Hi,

I encountered the same problem. I fixed it with the solution given by jrista.

It would be nice if the correction could be include in an update of PixInsight.

Thanks in advance.

Offline mar504

  • Newcomer
  • Posts: 17
Re: Bug in recently updated BasicCCDParameters script?
« Reply #2 on: 2018 June 29 23:26:25 »
This problem still exists...