CaltechOpticalObservatories / NGPS

NGPS Software
2 stars 0 forks source link

GO button active at wrong time #10

Closed astronomerdave closed 1 year ago

astronomerdave commented 1 year ago

The state is IDLE and the GO button is green and clickable when there are no targets: image

Per design, state should be "No Targets" and GO button should be greyed-out: image

jenniferwillow commented 1 year ago

This was rather complicated to do but it's been finished. When I get a READY state I check if the main table has targets in it (i.e. row count not equal 0) If the table has no targets I set the STATE of the observation sequencer (internal) to be READY_NO_TARGET which changes the GUI to the NO Targets state. When you either open or import a target list it makes sure that there are targets in the list and then changes the OS state to READY again. I think there are only 2 ways to have non-zero row count: (1) import a target list, (2) open a target list from the database. If this is true then this issue should be closed.