Author: bugman Date: Mon Oct 20 15:11:58 2014 New Revision: 26316 URL: http://svn.gna.org/viewcvs/relax?rev=26316&view=rev Log: Created the Optimisation.has_grid() method for the frame order auto-analysis. This is used to test if the optimisation settings object has a grid search defined. Modified: branches/frame_order_cleanup/auto_analyses/frame_order.py Modified: branches/frame_order_cleanup/auto_analyses/frame_order.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/auto_analyses/frame_order.py?rev=26316&r1=26315&r2=26316&view=diff ============================================================================== --- branches/frame_order_cleanup/auto_analyses/frame_order.py (original) +++ branches/frame_order_cleanup/auto_analyses/frame_order.py Mon Oct 20 15:11:58 2014 @@ -1655,6 +1655,21 @@ return self._min_sobol_max_points[i], self._min_sobol_oversample[i] + def has_grid(self): + """Is a grid search set up? + + @return: True if a grid search has been set up. + @rtype: bool + """ + + # Grid information is present. + if self._grid_count > 0: + return True + + # No grid. + return False + + def loop_grid(self): """Generator method for looping over all grid search iterations.