"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "multi/__init__.py" between
relax-4.1.3.src.tar.bz2 and relax-5.0.0.src.tar.bz2

About: relax allows the study of molecular dynamics through the analysis of experimental NMR data. Organic molecules, proteins, RNA, DNA, sugars, and other biomolecules are all supported.

__init__.py  (relax-4.1.3.src.tar.bz2):__init__.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 151 skipping to change at line 151
@todo: Remove non-essential parameters. @todo: Remove non-essential parameters.
@param processor_name: Name of the processor module/class to load. @param processor_name: Name of the processor module/class to load.
@type processor_name: str @type processor_name: str
@keyword verbosity: The verbosity level at initialisation. This can be changed during program execution. A value of 0 suppresses all output. A value of 1 causes the basic multi-processor information to be printed. A value of 2 w ill switch on a number of debugging printouts. Values greater than 2 currently do nothing, though this might change in the future. @keyword verbosity: The verbosity level at initialisation. This can be changed during program execution. A value of 0 suppresses all output. A value of 1 causes the basic multi-processor information to be printed. A value of 2 w ill switch on a number of debugging printouts. Values greater than 2 currently do nothing, though this might change in the future.
@type verbosity: int @type verbosity: int
@return: A loaded processor object or None to indicate failur e. @return: A loaded processor object or None to indicate failur e.
@rtype: multi.processor.Processor instance @rtype: multi.processor.Processor instance
""" """
# Check that the processor type is supported.
if processor_name not in ['uni', 'mpi4py']:
_sys.stderr.write("The processor type '%s' is not supported.\n" % proces
sor_name)
_sys.exit()
# Store the verbosity level. # Store the verbosity level.
_verbosity.set(verbosity) _verbosity.set(verbosity)
# The Processor details. # The Processor details.
processor_name = processor_name + '_processor' processor_name = processor_name + '_processor'
class_name = processor_name[0].upper() + processor_name[1:] class_name = processor_name[0].upper() + processor_name[1:]
module_path = '.'.join(('multi', processor_name)) module_path = '.'.join(('multi', processor_name))
# Load the module containing the specific processor. # Load the module containing the specific processor.
modules = _import_module(module_path) modules = _import_module(module_path)
 End of changes. 1 change blocks. 
6 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)