Classes | |
class | casaDocHelper |
Functions | |
def | casalogger |
def | go |
def | selectfield |
def | selectantenna |
def | readboxfile |
def | inp |
def | update_params |
def | print_params_col |
function to print inputs with coloring colorparam 'blue'=> non-default, colorcomment 'green'=> can have sub params 'blue' => is a sub-parameter blue = [94m bold = [1m red = [91m cyan = [96m green= [92m normal = [0m underline= [04m reverse = [7m highlight with black = [40s | |
def | __set_default_parameters |
def | tput |
def | saveinputs |
def | default |
def | taskparamgui |
def | exit |
Variables | |
tuple | ppid |
tweak path... | |
tuple | homedir |
dictionary | casa |
list | __casapath__ |
set up casa root | |
list | exelist |
setup helper paths... | |
list | entry |
dd | |
next search through $PATH for executables | |
list | a |
string | __ipython_colors |
get a copy from goofy python | |
tuple | c |
strip out 2 element ipython flags (which we recognize) here... | |
list | casa_path |
we join multi-arg parameters here | |
tuple | argv_0_path |
ensure default initialization occurs before this point... | |
tuple | dbus_path |
dbus_conf | |
list | args |
close standard input to avoid terminal interrupts | |
tuple | dbus_address |
list | ipythonenv |
list | ipythonpath |
list | logpid |
showconsole | |
string | thelogfile |
deploylogger | |
int | vwrpid |
setup file catalog | |
true | |
CAS-951: matplotlib unresponsive on some 64bit systems. | |
T | |
false | |
F | |
list | ipython |
list | home |
string | fullpath |
string | ipythonlog |
tuple | ipshell |
assume casa['flags']['-c'] is a file to execute... |
def casapy.__set_default_parameters | ( | b | ) | [private] |
Definition at line 912 of file casapy.py.
References asap.asapmath.keys.
def casapy.casalogger | ( | logfile = '' | ) |
Spawn a new casalogger using logfile as the filename. You should only call this if the casalogger dies or you close it and restart it again. Note: if you changed the name of the log file using casalog.setlogfile you will need to respawn casalogger with the new log filename. Eventually, we will figure out how to signal the casalogger with the new name but not for a while.
def casapy.default | ( | taskname = None | ) |
def casapy.exit | ( | ) |
Definition at line 1085 of file casapy.py.
Referenced by task_flagcmd.newplotflags(), task_flagcmd.plotflags(), flaghelper.readXML(), and flaghelper.writeFlagCmd().
def casapy.go | ( | taskname = None | ) |
Execute taskname:
Definition at line 488 of file casapy.py.
References parameter_check.parameter_checktype().
def casapy.inp | ( | taskname = None | ) |
Definition at line 593 of file casapy.py.
References parameter_check.parameter_checktype(), and update_params().
def casapy.print_params_col | ( | param = None , |
|
value = None , |
|||
comment = '' , |
|||
colorparam = None , |
|||
colorcomment = None , |
|||
noerrorval = True |
|||
) |
function to print inputs with coloring colorparam 'blue'=> non-default, colorcomment 'green'=> can have sub params 'blue' => is a sub-parameter blue = [94m bold = [1m red = [91m cyan = [96m green= [92m normal = [0m underline= [04m reverse = [7m highlight with black = [40s
Definition at line 818 of file casapy.py.
Referenced by update_params().
def casapy.readboxfile | ( | boxfile | ) |
def casapy.saveinputs | ( | taskname = None , |
|
outfile = '' , |
|||
myparams = None , |
|||
ipython_globals = None , |
|||
scriptstr = [''] |
|||
) |
Save current input values to file on disk for a specified task: taskname -- Name of task default: <unset>; example: taskname='bandpass' <Options: type tasklist() for the complete list> outfile -- Output file for the task inputs default: taskname.saved; example: outfile=taskname.orion
Definition at line 949 of file casapy.py.
References parameter_check.parameter_checktype().
Referenced by tput().
def casapy.selectantenna | ( | vis, | |
minstring | |||
) |
Derive the antennaid from matched string(s):
Definition at line 535 of file casapy.py.
References tests.test_imcontsub.list.
def casapy.selectfield | ( | vis, | |
minstring | |||
) |
Derive the fieldid from minimum matched string(s):
Definition at line 509 of file casapy.py.
References tests.test_imcontsub.list.
def casapy.taskparamgui | ( | useGlobals = True | ) |
def casapy.tput | ( | taskname = None , |
|
outfile = '' |
|||
) |
Definition at line 940 of file casapy.py.
References saveinputs().
def casapy.update_params | ( | func, | |
printtext = True , |
|||
ipython_globals = None |
|||
) |
Definition at line 631 of file casapy.py.
References accum_pg.defaults(), asap.asapmath.keys, and print_params_col().
Referenced by inp().
tuple casapy.__casapath__ |
list casapy.args |
tuple casapy.argv_0_path |
tuple casapy.c |
strip out 2 element ipython flags (which we recognize) here...
strip out single element ipython flags (which we recognize) here...
Definition at line 213 of file casapy.py.
Referenced by testwrapper.UnitTest.getUnitTest().
dictionary casapy.casa |
list casapy.casa_path |
tuple casapy.dbus_address |
tuple casapy.dbus_conf |
tuple casapy.dbus_path |
list casapy.entry |
list casapy.exelist |
note: hosts which have dbus-daemon-1 but not dbus-daemon seem to have a broken dbus-daemon-1...
list casapy.fullpath |
prelude.py => setup/modification of casa settings (above) init.py => user setup (with task access)
Definition at line 1159 of file casapy.py.
Referenced by parallel.pimager.pimager.pcont(), and parallel.pimager.pimager.pcontmt().
list casapy.home |
tuple casapy.homedir |
tuple casapy.ipshell |
list casapy.ipython |
list casapy.ipythonenv |
string casapy.ipythonlog |
list casapy.ipythonpath |
list casapy.logpid |
tuple casapy.ppid |
tweak path...
where necessary...
path_addition = [ ] for p in sys.path : if p.startswith(sys.prefix):
for wanted in ['lib-tk', 'dist-packages']: newpath = p + os.sep + wanted if os.path.isdir(newpath): path_addition.append(newpath) watchdog... which is not in the casapy process group close standard input to avoid terminal interrupts
list casapy.showconsole |
string casapy.thelogfile |
int casapy.vwrpid |