def __init__(self, executable, cell_diffusion_range, public_good_diffusion_range, public_good_durability_range, death_rate_range, chunk_size, make_movie, num_cells, num_trials, **extra_args): if not chunk_size: chunk_size = step self.executable = executable self.extra_args = extra_args self.make_movie = make_movie self.num_cells = num_cells self.num_trials = num_trials self.combinations = list( itertools.product(cell_diffusion_range, public_good_durability_range, public_good_diffusion_range, death_rate_range)) self.curr = 0 ChunkedParameterSweep.__init__( self, 1, len(self.combinations) + 1, # it has to be at least 2 1, chunk_size, **extra_args)
def __init__(self, executable, cell_diffusion_range, public_good_diffusion_range, public_good_durability_range, death_rate_range, chunk_size, make_movie, num_cells, num_trials, **extra_args): if not chunk_size: chunk_size = step self.executable = executable self.extra_args = extra_args self.make_movie = make_movie self.num_cells = num_cells self.num_trials = num_trials self.combinations = list(itertools.product( cell_diffusion_range, public_good_durability_range, public_good_diffusion_range, death_rate_range)) self.curr = 0 ChunkedParameterSweep.__init__(self, 1, len(self.combinations)+1, # it has to be at least 2 1, chunk_size, **extra_args)
def __init__(self, range_start, range_end, slice, chunk_size, input_files_archive, gnfs_location, output_folder, **extra_args): # remember for later self.range_start = range_start self.range_end = range_end self.parameter_count_increment = slice * chunk_size self.input_files_archive = input_files_archive self.gnfs_location = gnfs_location self.output_folder = output_folder self.extra_args = extra_args ChunkedParameterSweep.__init__( self, range_start, range_end, slice, chunk_size, **self.extra_args)