comparison tomo_find_center.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='Find the center axis for 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('-o', '--output_file', 22 parser.add_argument('-o', '--output_file',
89 # logging.info(f'Memory usage: {tracemalloc.get_traced_memory()}') 89 # logging.info(f'Memory usage: {tracemalloc.get_traced_memory()}')
90 90
91 # stopping memory monitoring 91 # stopping memory monitoring
92 # tracemalloc.stop() 92 # tracemalloc.stop()
93 93
94 logging.info('Completed find center axis')
95
96
94 if __name__ == "__main__": 97 if __name__ == "__main__":
95 __main__() 98 __main__()