Author: bugman Date: Mon Oct 6 22:33:38 2008 New Revision: 7534 URL: http://svn.gna.org/viewcvs/relax?rev=7534&view=rev Log: Converted the 'select_sim' variable to a list of bools. Modified: 1.3/generic_fns/monte_carlo.py Modified: 1.3/generic_fns/monte_carlo.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/monte_carlo.py?rev=7534&r1=7533&r2=7534&view=diff ============================================================================== --- 1.3/generic_fns/monte_carlo.py (original) +++ 1.3/generic_fns/monte_carlo.py Mon Oct 6 22:33:38 2008 @@ -26,7 +26,6 @@ # Python module imports. from copy import deepcopy from math import sqrt -from numpy import ones from random import gauss # relax module imports. @@ -312,7 +311,7 @@ @keyword all_select_sim: The selection status of the Monte Carlo simulations. The first dimension of this matrix corresponds to the simulation and the second corresponds to the models. - @type all_select_sim: numpy matrix (int) + @type all_select_sim: list of lists of bool """ # Alias the current data pipe. @@ -324,14 +323,14 @@ # Create the selected simulation array with all simulations selected. if all_select_sim == None: - select_sim = ones(number, int) + select_sim = [True]*number # Loop over the models. i = 0 for model_info in model_loop(): # Set up the selected simulation array. if all_select_sim != None: - select_sim = all_select_sim[i].tolist() + select_sim = all_select_sim[i] # Set the selected simulation array. set_selected_sim(model_info, select_sim)