Opened 15 years ago

Closed 15 years ago

#169 closed enhancement (fixed)

rework the way the user specifies selection

Reported by: Malte Marquarding Owned by: Malte Marquarding
Priority: normal Milestone: ASAP 2.4
Component: General Version: 2.0
Severity: major Keywords: selector, selection
Cc:

Description

For small selections the user usually applies, e.g. just selecting one IF, the selection mechanism is a little bit of overkill.

Change the scantable and selector to handle state settings directly through arguments, e.g.

s = scantable('xyz')
s.set_selection(ifs=1)
sel = selector()
sel.set_ifs(1)
s.set_selection(sel)
#instead of
# and
sel = selector(ifs=1)
#instead of
sel = selector()
sel.set_ifs(1)

The old system should be maintained though for handling complex selections.

Change History (2)

comment:1 Changed 15 years ago by Malte Marquarding

Status: newassigned

comment:2 Changed 15 years ago by Malte Marquarding

Resolution: fixed
Status: assignedclosed

Done in changeset:1576

Note: See TracTickets for help on using tickets.