diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py index 9145531a26752089ac878d2c50ec894f83b2265f..d75d7f89979ef6318635de1cf5ce06f2c41ff36e 100755 --- a/wetb/prepost/Simulations.py +++ b/wetb/prepost/Simulations.py @@ -3748,23 +3748,28 @@ class Cases(object): save_pickle(os.path.join(self.post_dir, self.sim_id + '_fail.pkl'), self.cases_fail) - def remove_failed(self): + def remove_failed(self, verbose=False): # don't do anything if there is nothing defined if self.cases_fail == None: print('no failed cases to remove') return + nr_cases = len(self.cases) # ditch all the failed cases out of the htc_dict # otherwise we will have fails when reading the results data files for k in self.cases_fail: try: self.cases_fail[k] = copy.copy(self.cases[k]) del self.cases[k] - print('removed from htc_dict due to error: ' + k) + if verbose: + print('removed from htc_dict due to error: ' + k) except KeyError: - print('WARNING: failed case does not occur in cases') - print(' ', k) + if verbose: + print('WARNING: failed case does not occur in cases') + print(' ', k) + rpl = (len(self.cases_fail), nr_cases) + print('removed %i failed cases (out of %i)' % rpl) def load_failed(self, sim_id): diff --git a/wetb/prepost/dlctemplate.py b/wetb/prepost/dlctemplate.py index c3e2c166274946ae02e7fa29f66e4a5632ea55e1..60b36e2a24cb7ffecd8023c794a81ac978d8cc47 100644 --- a/wetb/prepost/dlctemplate.py +++ b/wetb/prepost/dlctemplate.py @@ -641,7 +641,7 @@ def prepare_failed(compress=False, wine_arch='win32', wine_prefix='~/.wine32', ppn=20, nr_procs_series=3, walltime='20:00:00', chunks_dir='zip-chunks-jess-fail', compress=compress, wine_arch=wine_arch, wine_prefix=wine_prefix, - prelude=prelude, queue='windq') + prelude=prelude, queue='windq', i0=1000) if __name__ == '__main__':