| Home | Trees | Index | Help |
|
|---|
| Package asap |
|
| Submodules | |
|---|---|
| |
| Function Summary | |
|---|---|
is_ipython()
| |
Return a list files readable by asap, such as rpf, sdfits, mbf, asap... | |
list_rcparameters()
| |
mask_and(a,
b)
| |
mask_not(a)
| |
mask_or(a,
b)
| |
print_log()
| |
Set the current rc params. | |
Return the default params updated from the values in the rc file | |
Restore the default rc params - the ones that were created at asap load time | |
Return the unique values in a list... | |
welcome()
| |
Return the path to the rc file... | |
_is_sequence_or_number(param,
ptype)
| |
_n_bools(n,
val)
| |
_to_list(param,
ptype)
| |
Convert b to a boolean or raise | |
convert s to int or raise | |
| Variable Summary | |
|---|---|
str |
__date__ = '2007-05-02'
|
str |
__version__ = '2.2.0'
|
Log |
asaplog = <asap._asap.Log object at 0x401fe3c4>
|
dict |
defaultParams = {'scantable.verbosesummary': [False, <fu...
|
str |
plf = 'linux_gnu'
|
dict |
rcParams = {'scantable.verbosesummary': False, 'scantabl...
|
| Function Details |
|---|
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']
|
rc(group, **kwargs)
Set the current rc params. Group is the grouping for the rc, eg
for scantable.save the group is 'scantable', for plotter.stacking, the
group is 'plotter', and so on. kwargs is a list of attribute
name/value pairs, eg
rc('scantable', save='SDFITS')
sets the current rc params and is equivalent to
rcParams['scantable.save'] = 'SDFITS'
Use rcdefaults to restore the default rc params after changes.
|
rc_params()Return the default params updated from the values in the rc file |
rcdefaults()Restore the default rc params - the ones that were created at asap load time |
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]
|
_asap_fname()Return the path to the rc file Search order: * current working dir * environ var ASAPRC * HOME/.asaprc |
_validate_bool(b)Convert b to a boolean or raise |
_validate_int(s)convert s to int or raise |
| Variable Details |
|---|
__date__
|
__version__
|
asaplog
|
plf
|
rcParams
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed May 2 14:24:33 2007 | http://epydoc.sf.net |