Opened 12 years ago

Closed 12 years ago

#276 closed enhancement (fixed)

Implement easy quit-out from verifications (from CAS-4146)

Reported by: Kana Sugimoto Owned by: Kana Sugimoto
Priority: normal Milestone: Unified development
Component: General Version: 2.0
Severity: normal Keywords:
Cc:

Description

A request from scientists at NRAO. Implement a way to exit from per row verification. Per row verification is implemented in smooth, poly_baseline, and auto_poly_baseline in scantable class, but there's no way to exit from verification loop in the middle of scantable and users should verify all rows. It is nice to implement way to quit verification either by accepting or rejecting operations for all data in the following.

Change History (2)

comment:1 Changed 12 years ago by Kana Sugimoto

Status: newassigned

The plan is to implement something like this:

Available actions of verification [Y|n|a|r]

Y : Yes for current data (default) N : No for current data A : Accept all in the following and exit from verification R : Reject all in the following and exit from verification H or ?: help (show this message)

comment:2 Changed 12 years ago by Kana Sugimoto

Resolution: fixed
Status: assignedclosed

Done implementing a way to quit-out per row verification in:

  • scantable.smooth
  • scantable.poly_baseline
  • scantable.auto_poly_baseline

A new method, scantable._get_verify_action(message, action=None), is generated to define common interface of verification.
The method

  • simply returns the value of action as a string if its defined, or
  • prints a dialog message on terminal to ask user select action and returns the user choice as a string (or show help).

Available actions of verification [Y|n|a|r]:

Y : Yes for current data (default)
N : No for current data
A : Accept all in the following and exit from verification
R : Reject all in the following and exit from verification
H or ?: help (show this message)

Note: See TracTickets for help on using tickets.