Package pyraf :: Module irafecl :: Class EclBase
[hide private]
[frames] | no frames]

Class EclBase

source code


Instance Methods [hide private]
 
__init__(self, *args, **kw) source code
 
is_pseudo(self, name)
Returns True iff 'name' is a pseudo variable or begins with _ecl
source code
 
run(self, *args, **kw)
Execute this task with the specified arguments
source code
 
_run(self, redirKW, specialKW) source code
 
_ecl_push_err(self)
Method call emitted in compiled CL code to start an iferr block.
source code
 
_ecl_pop_err(self)
Method call emitted in compiled CL code to close an iferr block and start the handler.
source code
 
_ecl_handle_error(self, e)
IrafTask version of handle error: register error with calling task but continue.
source code
 
_ecl_trace(self, *args)
Outputs an ECL error message to stderr iff erract.trace is True.
source code
 
_ecl_exception_properties(self, e)
This is a 'safe wrapper' which extracts the ECL pseudo parameter values from an exception.
source code
 
_ecl_record_error(self, e) source code
 
_ecl_set_error_params(self, errno, msg, taskname)
Sets the ECL pseduo parameters for this task.
source code
 
_ecl_clear_error_params(self)
Clears the ECL pseudo parameters to a non-error condition.
source code
 
_ecl_err_msg(self, e)
Formats an ECL error message from an exception and returns it as a string.
source code
 
_ecl_get_lineno(self, frame=None)
_ecl_get_lineno fetches the innermost frame of Python code compiled from a CL task.
source code
 
_ecl_state(self, frame=None)
returns the EclState object corresponding to this task invocation.
source code
 
_ecl_iferr_entered(self)
returns True iff the current invocation of the task self is in an iferr or ifnoerr guarded block.
source code
 
_ecl_safe_divide(self, a, b)
_ecl_safe_divide is used to wrap the division operator for ECL code and trap divide-by-zero errors.
source code
 
_ecl_safe_modulo(self, a, b)
_ecl_safe_modulus is used to wrap the modulus operator for ECL code and trap mod-by-zero errors.
source code
Method Details [hide private]

_ecl_push_err(self)

source code 

Method call emitted in compiled CL code to start an iferr block. Increments local iferr state counter to track iferr block nesting.

_ecl_pop_err(self)

source code 

Method call emitted in compiled CL code to close an iferr block and start the handler. Returns $errno which is 0 iff no error occurred. Decrements local iferr state counter to track block nesting.

_ecl_exception_properties(self, e)

source code 

This is a 'safe wrapper' which extracts the ECL pseudo parameter values from an exception. It works for both ECL and non-ECL exceptions.

_ecl_get_lineno(self, frame=None)

source code 

_ecl_get_lineno fetches the innermost frame of Python code compiled from a CL task. and then translates the current line number in that frame into it's CL line number and returns it.