comparison tomo_reconstruct.py @ 75:d5e1d4ea2b7e draft default tip

planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
author rv43
date Thu, 23 Mar 2023 13:39:14 +0000
parents 1cf15b61cd83
children
comparison
equal deleted inserted replaced
74:4f4ee8db5f67 75:d5e1d4ea2b7e
12 #from memory_profiler import profile 12 #from memory_profiler import profile
13 #@profile 13 #@profile
14 def __main__(): 14 def __main__():
15 # Parse command line arguments 15 # Parse command line arguments
16 parser = argparse.ArgumentParser( 16 parser = argparse.ArgumentParser(
17 description='Reduce tomography data') 17 description='Perform a tomography reconstruction')
18 parser.add_argument('-i', '--input_file', 18 parser.add_argument('-i', '--input_file',
19 required=True, 19 required=True,
20 type=pathlib.Path, 20 type=pathlib.Path,
21 help='''Full or relative path to the input file (in Nexus format).''') 21 help='''Full or relative path to the input file (in Nexus format).''')
22 parser.add_argument('-c', '--center_file', 22 parser.add_argument('-c', '--center_file',
104 # logging.info(f'Memory usage: {tracemalloc.get_traced_memory()}') 104 # logging.info(f'Memory usage: {tracemalloc.get_traced_memory()}')
105 105
106 # stopping memory monitoring 106 # stopping memory monitoring
107 # tracemalloc.stop() 107 # tracemalloc.stop()
108 108
109 logging.info('Completed tomography reconstruction')
110
111
109 if __name__ == "__main__": 112 if __name__ == "__main__":
110 __main__() 113 __main__()