Author: bugman Date: Tue May 29 17:49:43 2012 New Revision: 16520 URL: http://svn.gna.org/viewcvs/relax?rev=16520&view=rev Log: Fixes for the frame order MC sim methods for the changes to the specific API param list objects. The methods sim_init_values() and sim_return_param() were modified to skip non-existent parameters. Modified: branches/uf_redesign/specific_fns/frame_order.py Modified: branches/uf_redesign/specific_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/specific_fns/frame_order.py?rev=16520&r1=16519&r2=16520&view=diff ============================================================================== --- branches/uf_redesign/specific_fns/frame_order.py (original) +++ branches/uf_redesign/specific_fns/frame_order.py Tue May 29 17:49:43 2012 @@ -1374,6 +1374,10 @@ # Loop over all the data names. for object_name in param_names: + # Skip non-existent objects. + if not hasattr(cdp, object_name): + continue + # Name for the simulation object. sim_object_name = object_name + '_sim' @@ -1444,6 +1448,10 @@ # Loop over the parameters. for param in param_names: + # Skip non-existent objects. + if not hasattr(cdp, param): + continue + # Return the parameter array. if index == inc: return getattr(cdp, param + "_sim")