Menu

SVN archive Commit Log


Commit Date  
[r15419] by bugman

Created a special Verbosity singleton for controlling the multi-processor package print outs.

This controls the text prepended to the output from the slaves, as well as all print outs from the
master processor. If the verbosity level is set to 0, then nothing but warnings and errors are
printed. The level of 1 prepends text to the slave IO streams and the print out of from the master
of the active slave set.

This will be important for very fine grained parallelisation whereby the multi-processor is used at
the level of the basic function call or lower.

2012-03-01 12:36:46 Tree
[r15418] by bugman

Future proofed the relax codebase by replacing all ''' with """ in the docstrings.

According to the Python convention PEP 257 (http://www.python.org/dev/peps/pep-0257/), it is stated
that, "[f]or consistency, always use """triple double quotes""" around docstrings". As this is a
convention, it may be enforced in future Python versions.

2012-03-01 09:57:22 Tree
[r15417] by bugman

Removed the try statement in the model-free Slave_command.run() method.

After testing, this appears to not be needed anyway. Exception handling is correctly performed on
the slave and master.

2012-03-01 09:47:34 Tree
[r15416] by bugman

Reverted r15412 as this was triggering a locking condition and no allowing the program to terminate.

The command used was:
svn merge -r15412:r15411 .

.....
r15412 | bugman | 2012-02-29 16:16:59 +0100 (Wed, 29 Feb 2012) | 7 lines
Changed paths:
M /1.3/multi/api.py
M /1.3/multi/multi_processor_base.py
M /1.3/multi/uni_processor.py
M /1.3/specific_fns/model_free/multi_processor_commands.py

Simplification and abstraction of the Slave_command.run() method.

The Processor now calls the _run() method of the Slave_command base class. This is a wrapper for
run() which performs the exception handling. Therefore the program code, such as
MF_minimise_command, is no longer required to handle the multi-processor specific error handling.
.....

2012-03-01 09:45:50 Tree
[r15415] by bugman

Updated the Slave_command.run() docstring to state that this must be overridden.

2012-03-01 09:10:36 Tree
[r15414] by bugman

Shifted the Capturing_exception class into the misc module.

2012-02-29 15:32:05 Tree
[r15413] by bugman

Shifted the Memo object into its own module.

2012-02-29 15:23:41 Tree
[r15412] by bugman

Simplification and abstraction of the Slave_command.run() method.

The Processor now calls the _run() method of the Slave_command base class. This is a wrapper for
run() which performs the exception handling. Therefore the program code, such as
MF_minimise_command, is no longer required to handle the multi-processor specific error handling.

2012-02-29 15:16:59 Tree
[r15411] by bugman

Created a new module for holding miscellaneous functions used throughout the package.

This includes import_module() and raise_unimplemented() functions.

2012-02-29 13:51:27 Tree
[r15410] by bugman

Import clean up.

2012-02-29 13:43:28 Tree
Older >
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.