Menu

Commit [r10327]  Maximize  Restore  History

Merged revisions 10304-10326 via svnmerge from

svn+ssh://bugman@.../svn/relax/1.3

........
r10304 | bugman | 2010-01-25 14:25:32 +0100 (Mon, 25 Jan 2010) | 11 lines

Redesign of the setup of the names spaces for the user functions.

All the user functions and other objects located in the run() method namespace have been shifted
into the interpreter self._locals dictionary. These are then placed into the run() method namespace
by looping over the keys and using the 'locals()[key] = object' syntax. There may be better ways to
do this.

This has no visible effect on the prompt or script based interfaces. It will change how this is
seen by other modules though, and will allow the namespace to be more easily accessed.
........
r10305 | bugman | 2010-01-25 14:26:57 +0100 (Mon, 25 Jan 2010) | 3 lines

Removed some unused and commented out code.
........
r10306 | bugman | 2010-01-25 14:31:09 +0100 (Mon, 25 Jan 2010) | 5 lines

Eliminated the dummy mode.

This is only used by the fetch_docstrings script and will soon not be necessary.
........
r10307 | bugman | 2010-01-25 15:55:49 +0100 (Mon, 25 Jan 2010) | 7 lines

The relax base object is no longer passed into the class namespace of the user functions.

This was only being used for access to the intro flag (a few other cases exist, but these should be
fixed). Now a new container object with this flag is being passed in. This significantly
simplifies the code paths and removes the need for the test suite to create 'fake' relax instances.
........
r10308 | bugman | 2010-01-25 16:08:41 +0100 (Mon, 25 Jan 2010) | 7 lines

Modified how the Exec_info data container is handled.

The class was shifted from prompt.interpreter to prompt.base_class. In addition if not container
is passed into the user function classes, then one is created with the intro flag set to a default
of True.
........
r10309 | bugman | 2010-01-25 16:34:44 +0100 (Mon, 25 Jan 2010) | 8 lines

The prompt info has been shifted into the execution info container.

The sys.ps1, sys.ps2, and sys.ps3 prompts are still set, but these strings are hardcoded into the
execution info container. This allows the user functions to be imported and operate outside of the
prompt/scripting based interface, as the no longer require sys.ps3 to be set or the relax main
instance passed into them.
........
r10310 | bugman | 2010-01-25 16:39:34 +0100 (Mon, 25 Jan 2010) | 5 lines

Eliminated the fake_relax instance dependence.

This is no longer necessary as the user functions can be initialised without relax.
........
r10311 | bugman | 2010-01-25 16:53:14 +0100 (Mon, 25 Jan 2010) | 3 lines

Created the populate_self() method to place all user functions into the interpreter namespace.
........
r10312 | bugman | 2010-01-25 16:58:57 +0100 (Mon, 25 Jan 2010) | 5 lines

The relax main instance is no longer passed into the test suite.

This can be done as the prompt/script interface has been detached from relax.
........
r10313 | bugman | 2010-01-25 17:00:12 +0100 (Mon, 25 Jan 2010) | 5 lines

The relax main instance is no longer passed into the prompt/script interface.

This can be done as the prompt/script interface has been detached from relax.
........
r10314 | bugman | 2010-01-25 17:06:28 +0100 (Mon, 25 Jan 2010) | 3 lines

The relax main instance is no longer handled by the system test initialisation code.
........
r10315 | bugman | 2010-01-25 18:04:17 +0100 (Mon, 25 Jan 2010) | 5 lines

Created the SystemTestCase base class for all the system tests to use.

This base class initialises the relax interpreter within the TestCase class instances.
........
r10316 | bugman | 2010-01-25 18:13:12 +0100 (Mon, 25 Jan 2010) | 3 lines

The interpreter _on() method does not need to be called as user fn intros are turned on by default.
........
r10317 | bugman | 2010-01-25 18:52:04 +0100 (Mon, 25 Jan 2010) | 5 lines

Fixed all the calls to the user functions located in the interpreter class.

self.relax is no longer referenced and the user functions are now directly called.
........
r10318 | bugman | 2010-01-25 18:52:38 +0100 (Mon, 25 Jan 2010) | 3 lines

Fixed the script user function.
........
r10319 | bugman | 2010-01-25 18:54:20 +0100 (Mon, 25 Jan 2010) | 3 lines

Removed redundant and now non-functional code from interact_script().
........
r10320 | bugman | 2010-01-25 19:04:45 +0100 (Mon, 25 Jan 2010) | 3 lines

Comment fix.
........
r10321 | bugman | 2010-01-25 19:11:25 +0100 (Mon, 25 Jan 2010) | 6 lines

Update the user function print out functions.

_off() and _on() are no longer private, and accept the verbose keyword arg to allow the print out to
be suppressed.
........
r10322 | bugman | 2010-01-25 19:11:59 +0100 (Mon, 25 Jan 2010) | 3 lines

Alphabetical ordering of methods.
........
r10323 | bugman | 2010-01-25 19:21:05 +0100 (Mon, 25 Jan 2010) | 3 lines

The dAuvergne_protocol class now calls the user functions from the self.interpreter instance directly.
........
r10324 | bugman | 2010-01-25 19:26:36 +0100 (Mon, 25 Jan 2010) | 5 lines

Fix for the automatic model-free protocol in dAuvergne_protocol.

The sequence.read() and relax_data.read() user functions args are now sent in as keywords.
........
r10325 | bugman | 2010-01-25 20:31:25 +0100 (Mon, 25 Jan 2010) | 3 lines

Created the RelaxFileEmptyWarning class.
........
r10326 | bugman | 2010-01-25 20:36:30 +0100 (Mon, 25 Jan 2010) | 3 lines

Modified read_spin_data() to throw a warning rather than error when an empty file is encountered.
........

bugman 2010-01-25

<< < 1 2 3 4 5 > >> (Page 3 of 5)
copied /1.3/test_suite/system_tests/base_classes.py -> /branches/bieri_gui/test_suite/system_tests/base_classes.py
changed /branches/bieri_gui/test_suite/system_tests/__init__.py
changed /branches/bieri_gui/test_suite/system_tests/align_tensor.py
changed /branches/bieri_gui/test_suite/system_tests/angles.py
changed /branches/bieri_gui/test_suite/system_tests/consistency_tests.py
changed /branches/bieri_gui/test_suite/system_tests/dasha.py
changed /branches/bieri_gui/test_suite/system_tests/diffusion_tensor.py
changed /branches/bieri_gui/test_suite/system_tests/frame_order.py
changed /branches/bieri_gui/test_suite/system_tests/generic.py
changed /branches/bieri_gui/test_suite/system_tests/jw_mapping.py
changed /branches/bieri_gui/test_suite/system_tests/load_spins.py
changed /branches/bieri_gui/test_suite/system_tests/model_elimination.py
changed /branches/bieri_gui/test_suite/system_tests/model_free.py
changed /branches/bieri_gui/test_suite/system_tests/model_selection.py
changed /branches/bieri_gui/test_suite/system_tests/n_state_model.py
changed /branches/bieri_gui/test_suite/system_tests/noe.py
changed /branches/bieri_gui/test_suite/system_tests/noe_restraints.py
changed /branches/bieri_gui/test_suite/system_tests/palmer.py
changed /branches/bieri_gui/test_suite/system_tests/peak_lists.py
changed /branches/bieri_gui/test_suite/system_tests/pipes.py
changed /branches/bieri_gui/test_suite/system_tests/relax_fit.py
changed /branches/bieri_gui/test_suite/system_tests/results.py
changed /branches/bieri_gui/test_suite/system_tests/scripts/omp_model_free.py
changed /branches/bieri_gui/test_suite/system_tests/sequence.py
changed /branches/bieri_gui/test_suite/system_tests/state.py
/branches/bieri_gui/test_suite/system_tests/__init__.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/align_tensor.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/angles.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/consistency_tests.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/dasha.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/diffusion_tensor.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/frame_order.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/generic.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/jw_mapping.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/load_spins.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/model_elimination.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/model_free.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/model_selection.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/n_state_model.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/noe.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/noe_restraints.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/palmer.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/peak_lists.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/pipes.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/relax_fit.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/results.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/scripts/omp_model_free.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/sequence.py Diff Switch to side-by-side view
Loading...
/branches/bieri_gui/test_suite/system_tests/state.py Diff Switch to side-by-side view
Loading...
<< < 1 2 3 4 5 > >> (Page 3 of 5)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.