Author: bugman Date: Wed Nov 2 10:46:22 2011 New Revision: 14951 URL: http://svn.gna.org/viewcvs/relax?rev=14951&view=rev Log: Added a check to prevent the frame order grid search from being too big causing out of memory errors. Modified: 1.3/specific_fns/frame_order.py Modified: 1.3/specific_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/frame_order.py?rev=14951&r1=14950&r2=14951&view=diff ============================================================================== --- 1.3/specific_fns/frame_order.py (original) +++ 1.3/specific_fns/frame_order.py Wed Nov 2 10:46:22 2011 @@ -1057,6 +1057,11 @@ total_pts = total_pts * len(grid[i]) + # Check the number. + max_pts = 50e6 + if total_pts > max_pts: + raise RelaxError("The total number of grid points '%s' exceeds the maximum of '%s'." % (total_pts, int(max_pts))) + # Build the points array. pts = zeros((total_pts, n), float64) indices = zeros(n, int)