Mercurial > repos > rv43 > tomo
diff tomo.py @ 2:b8977c98800b draft
"planemo upload for repository https://github.com/rolfverberg/galaxytools commit 0c40fb274acc13ebf7054379bb49ed13acec918e"
author | rv43 |
---|---|
date | Thu, 31 Mar 2022 20:48:17 +0000 |
parents | e4778148df6b |
children | f9c52762c32c |
line wrap: on
line diff
--- a/tomo.py Thu Mar 31 18:24:16 2022 +0000 +++ b/tomo.py Thu Mar 31 20:48:17 2022 +0000 @@ -481,7 +481,6 @@ return if self.galaxy_flag: - self.num_core = 1 #RV can I set this? mp.cpu_count() assert(self.output_folder == '.') assert(self.test_mode is False) self.save_plots = True @@ -528,7 +527,7 @@ self.tomo_stacks = [np.array([]) for _ in range(num_tomo_stacks)] self.tomo_recon_stacks = [np.array([]) for _ in range(num_tomo_stacks)] - logging.info(f'num_core = {self.num_core}') + logging.debug(f'num_core = {self.num_core}') logging.debug(f'config_file = {config_file}') logging.debug(f'config_dict = {config_dict}') logging.debug(f'config_out = {self.config_out}') @@ -1438,7 +1437,7 @@ # Save tomography stack to file if self.galaxy_flag: t0 = time() - logging.info(f'Saving preprocessed tomography stack to file ...') + logging.info(f'Saving preprocessed tomography stack to {output_name} ...') save_stacks = {f'set_{stack["index"]}':tomo_stack for stack,tomo_stack in zip(stacks,self.tomo_stacks)} np.savez(output_name, **save_stacks)