Skip to content

Left menu options in interactive findApertures are not working #477

@KathleenLabrie

Description

@KathleenLabrie

In release/3.2.x, some options in the left-top section of the interactive tool for findApertures are broken. Changing them are recalculating has absolutely no effect. Changing the same parameter on the command line does work, so it isn't the code associated with the parameter settings that doesn't work, it appears to be that the interactive tool does not apply the changes requested from within the tool.

Currently identified as broken are:

  • "Use S/N ratio in spatial profile?" checkbox. Turning it off ("on" by default) and clicking "Find apertures" changes nothing. (I have verified that setting it off in the call rather than in the tool does make a big difference.)
  • "Pixel section(s) ..." box is also unresponsive. (Again, I have checked that setting it out of the interactive tool does bring a change.)

Minor issue:

  • The "Threshold" slider is supposed to have a range from 0 to 1, but I can slide it to larger number (then get a pop saying max 1)

Verified to be working:

  • Percentile
  • SNR threshold
  • Max apertures
  • Maximum separation from target

Unable to verify:

  • Min sky region

Regarding the broken items,

The S/N checkbox

  • used to work in v3.1 which is bokeh 2.4. (v3.2 is bokeh >3). So this must have been introduced during the refactoring.
  • On the master branch, it has an effect but not the right one and it is probably more an algorithm issue rather than a GUI issue. (I'll investigate further and either update here or create a new ticket.)

The "Pixel section" box

  • appears to be broken in v3.1 too, so it has been broken for a while.
  • works fine on the master branch.

The command to reproduce:

reduce -r findApertures N20240817S0047_stack.fits -p interactive=True

(To see what the broken options do when called from the command line, add -p section=1200:1300 for pixel section, and -p use_snr=False for the S/N checkbox.)

The stack is from proprietary and can only be shared within NOIRLab for debugging purposes (the link only works for NOIRLab staff). It can be found here:

https://drive.google.com/drive/folders/1Uwx2HDBVxk9G1JMjaDT7Zxhs1fG1H-9f?usp=drive_link

I recommend:

  • that the S/N checkbox issue be fixed in release/3.2.x because in the master branch there seems to be another issue mixed in that will just cause more confusion.
  • that the Pixel section issue be left alone since it works in the master branch and our next release will be off that branch. Might good to understand why it doesn't work in 3.2.x though.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions