def do_run(self, environment): # loop over all time steps and do the updating # For each update step measurement = Measurement(environment, self) measurement.open_file() for i in range(self.num_sweeps): self.current_step = i self.updater.do_update(environment, i) measurement.write_all_to_file() print("***\nThis run had %s sweeps and %s simulations") % ( self.num_sweeps, environment.static_parameters['num_simulations']) print( "Check the output file that was written as csv in the measurements folder\n***" ) measurement.close_file()