Module interpreter
source code
The prompt based relax user interface (UI).
|
exec_script(name,
globals)
Execute the script. |
source code
|
|
|
|
|
interact_script(self,
intro=None,
local={ } ,
script_file=None,
quit=True,
show_script=True,
raise_relax_error=False)
Replacement function for 'code.InteractiveConsole.interact'. |
source code
|
|
|
|
|
run_script(intro=None,
local=None,
script_file=None,
quit=True,
show_script=True,
raise_relax_error=False)
Python interpreter emulation. |
source code
|
|
|
|
|
status = Status()
|
|
__package__ = ' prompt '
|
Imports:
dep_check,
ansi,
InteractiveConsole,
softspace,
F_OK,
access,
chdir,
getcwd,
path,
platform,
search,
readline,
runpy,
sys,
pi,
AllRelaxErrors,
RelaxBinError,
RelaxError,
RelaxNoneError,
RelaxStrError,
Exec_info,
Ls,
Lh,
Ll,
system,
_Helper,
_Helper_python,
Info_box,
Tab_completion,
Status,
Angles,
OpenDX,
Eliminate,
Fix,
GPL,
Reset,
Minimisation,
Modsel,
Sys_info,
Temp,
Align_tensor,
BMRB,
Bruker,
Consistency_tests,
Dasha,
Diffusion_tensor,
Frame_order,
Frq,
Grace,
Jw_mapping,
Model_free,
Molmol,
Molecule,
Monte_carlo,
N_state_model,
Noe,
Palmer,
Residue,
Structure,
Paramag,
PCS,
Pymol,
RDC,
Relax_data,
Relax_fit,
Results,
Pipe,
Select,
Sequence,
Spectrum,
Spin,
State,
Deselect,
Value,
Vmd
interact_prompt(self,
intro=None,
local={ } )
| source code
|
Replacement function for 'code.InteractiveConsole.interact'.
This will enter into the prompt.
- Parameters:
intro (str) - The string to print prior to jumping to the prompt mode.
local (dict) - A namespace which will become that of the prompt (i.e. the
namespace visible to the user when in the prompt mode). This
should be the output of a function such as locals().
|
interact_script(self,
intro=None,
local={ } ,
script_file=None,
quit=True,
show_script=True,
raise_relax_error=False)
| source code
|
Replacement function for 'code.InteractiveConsole.interact'.
This will execute the script file.
- Parameters:
intro (str) - The string to print prior to jumping to the prompt mode.
local (dict) - A namespace which will become that of the prompt (i.e. the
namespace visible to the user when in the prompt mode). This
should be the output of a function such as locals().
script_file (None or str) - The script file to be executed.
quit (bool) - If true, the default, then relax will exit after running the
script.
show_script (bool) - If true, the relax will print the script contents prior to
executing the script.
raise_relax_error (bool) - If false, the default, then a nice error message will be sent to
STDERR, without a traceback, when a RelaxError occurs. This is
to make things nicer for the user.
|
Python interpreter emulation.
This function replaces 'code.interact'.
- Parameters:
intro (str) - The string to print prior to jumping to the prompt mode.
local (dict) - A namespace which will become that of the prompt (i.e. the
namespace visible to the user when in the prompt mode). This
should be the output of a function such as locals().
|
run_script(intro=None,
local=None,
script_file=None,
quit=True,
show_script=True,
raise_relax_error=False)
| source code
|
Python interpreter emulation.
This function replaces 'code.interact'.
- Parameters:
intro (str) - The string to print prior to jumping to the prompt mode.
local (dict) - A namespace which will become that of the prompt (i.e. the
namespace visible to the user when in the prompt mode). This
should be the output of a function such as locals().
script_file (None or str) - The script file to be executed.
quit (bool) - If true, the default, then relax will exit after running the
script.
show_script (bool) - If true, the relax will print the script contents prior to
executing the script.
raise_relax_error (bool) - If false, the default, then a nice error message will be sent to
STDERR, without a traceback, when a RelaxError occurs. This is
to make things nicer for the user.
|
Replacement code for code.InteractiveInterpreter.runcode.
- Parameters:
code (str) - The code to execute.
|