Functions | |
def | mask_and |
def | mask_or |
def | mask_not |
def | _n_bools |
def | _is_sequence_or_number |
def | _to_list |
def | unique |
def | list_files |
def | page |
def | toggle_verbose |
def asap.utils._is_sequence_or_number | ( | param, | |
ptype = int |
|||
) | [private] |
Definition at line 17 of file utils.py.
Referenced by asap.utils._to_list().
def asap.utils._n_bools | ( | n, | |
val | |||
) | [private] |
Definition at line 14 of file utils.py.
Referenced by asap.customgui_base.CustomToolbarCommon._create_flag_from_array(), asap.scantable.scantable.create_mask(), asap.interactivemask.interactivemask.set_basemask(), asap.asapfitter.fitter.set_data(), asap.asapfitter.fitter.set_parameters(), and asap.asapfitter.fitter.set_scan().
def asap.utils._to_list | ( | param, | |
ptype = int |
|||
) | [private] |
Definition at line 28 of file utils.py.
References asap.utils._is_sequence_or_number().
Referenced by asap.scantable.scantable.drop_scan(), sdutil.get_listvalue(), sdutil.get_nx_ny(), asap.selector.selector.set_beams(), asap.selector.selector.set_cycles(), asap.selector.selector.set_ifs(), asap.selector.selector.set_polarisations(), asap.selector.selector.set_rows(), asap.selector.selector.set_scans(), and asap.selector.selector.set_types().
def asap.utils.list_files | ( | path = "." , |
|
suffix = "rpf" |
|||
) |
Return a list files readable by asap, such as rpf, sdfits, mbf, asap Parameters: path: The directory to list (default '.') suffix: The file extension (default rpf) Example: files = list_files("data/","sdfits") print files ['data/2001-09-01_0332_P363.sdfits', 'data/2003-04-04_131152_t0002.sdfits', 'data/Sgr_86p262_best_SPC.sdfits']
def asap.utils.mask_and | ( | a, | |
b | |||
) |
Definition at line 3 of file utils.py.
Referenced by asap.interactivemask.interactivemask._update_mask(), asap.scantable.scantable.auto_poly_baseline(), asap.asapfitter.fitter.fit(), and asap.scantable.scantable.poly_baseline().
def asap.utils.mask_not | ( | a | ) |
Definition at line 11 of file utils.py.
Referenced by asap.customgui_base.CustomToolbarCommon._create_flag_from_array(), and asap.scantable.scantable.create_mask().
def asap.utils.mask_or | ( | a, | |
b | |||
) |
Definition at line 7 of file utils.py.
Referenced by asap.customgui_base.CustomToolbarCommon._subplot_stats(), and asap.interactivemask.interactivemask._update_mask().
def asap.utils.page | ( | message | ) |
Run the input message through a pager. This is only done if ``rcParams["verbose"]`` is set.
Definition at line 69 of file utils.py.
Referenced by asap.scantable.scantable.history().
def asap.utils.toggle_verbose | ( | ) |
def asap.utils.unique | ( | x | ) |
Return the unique values in a list Parameters: x: the list to reduce Examples: x = [1,2,3,3,4] print unique(x) [1,2,3,4]
Definition at line 36 of file utils.py.
References asap.asapmath.keys.
Referenced by asap.selector.selector.__add__(), flaghelper.compressSelectionList(), and asap.scantable.scantable.drop_scan().