Author: bugman Date: Mon Oct 20 20:54:49 2008 New Revision: 7853 URL: http://svn.gna.org/viewcvs/relax?rev=7853&view=rev Log: Spacing fixes and a few added comments. Modified: branches/multi_processor_merge/multi/commands.py Modified: branches/multi_processor_merge/multi/commands.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/multi/commands.py?rev=7853&r1=7852&r2=7853&view=diff ============================================================================== --- branches/multi_processor_merge/multi/commands.py (original) +++ branches/multi_processor_merge/multi/commands.py Mon Oct 20 20:54:49 2008 @@ -1,25 +1,24 @@ -################################################################################ -# # -# Copyright (C) 2007 Gary S Thompson (see https://gna.org/users/varioustoxins # -# for contact details) # -# # -# This file is part of the program relax. # -# # -# relax is free software; you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation; either version 2 of the License, or # -# (at your option) any later version. # -# # -# relax is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with relax; if not, write to the Free Software # -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# # -################################################################################ +############################################################################### +# # +# Copyright (C) 2007 Gary S Thompson (https://gna.org/users/varioustoxins) # +# # +# This file is part of the program relax. # +# # +# relax is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# relax is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with relax; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +############################################################################### # Module docstring. """Module containing classes for the multi-processor commands.""" @@ -30,7 +29,9 @@ class Exit_command(Slave_command): def __init__(self): + # Execute the base class __init__() method. super(Exit_command, self).__init__() + def run(self, processor, completed): processor.return_object(processor.NULL_RESULT) @@ -39,7 +40,9 @@ class Get_name_command(Slave_command): def __init__(self): + # Execute the base class __init__() method. super(Exit_command, self).__init__() + def run(self, processor, completed): msg = processor.get_name() @@ -48,9 +51,12 @@ class Set_processor_property_command(Slave_command): - def __init__(self,property_map): + def __init__(self, property_map): + # Execute the base class __init__() method. super(Set_processor_property_command, self).__init__() + self.property_map = property_map + def run(self, processor, completed): for property, value in self.property_map.items():