Author: bugman Date: Fri Nov 16 16:44:49 2012 New Revision: 18002 URL: http://svn.gna.org/viewcvs/relax?rev=18002&view=rev Log: Created the frame order analysis specific duplicate_data() method. This allows the model_selection user function to operate on the frame order models. Modified: branches/frame_order_testing/specific_fns/frame_order.py Modified: branches/frame_order_testing/specific_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/specific_fns/frame_order.py?rev=18002&r1=18001&r2=18002&view=diff ============================================================================== --- branches/frame_order_testing/specific_fns/frame_order.py (original) +++ branches/frame_order_testing/specific_fns/frame_order.py Fri Nov 16 16:44:49 2012 @@ -1661,6 +1661,29 @@ cdp.select = False + def duplicate_data(self, pipe_from=None, pipe_to=None, model_info=None, global_stats=False, verbose=True): + """Duplicate the data specific to a single frame order data pipe. + + @keyword pipe_from: The data pipe to copy the data from. + @type pipe_from: str + @keyword pipe_to: The data pipe to copy the data to. + @type pipe_to: str + @param model_info: The model index from model_loop(). + @type model_info: int + @keyword global_stats: The global statistics flag. + @type global_stats: bool + @keyword verbose: Unused. + @type verbose: bool + """ + + # Check that the data pipe does not exist. + if pipes.has_pipe(pipe_to): + raise RelaxError("The data pipe '%s' already exists." % pipe_to) + + # Create the pipe_to data pipe by copying. + pipes.copy(pipe_from=pipe_from, pipe_to=pipe_to) + + def eliminate(self, name, value, model_info, args, sim=None): """Model elimination method.