Mercurial > repos > rv43 > chess_tomo
comparison tomo_reduce.py @ 5:543dba81eb15 draft
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
| author | rv43 |
|---|---|
| date | Mon, 20 Mar 2023 18:54:48 +0000 |
| parents | 9aa288729b9a |
| children | 05335876d167 |
comparison
equal
deleted
inserted
replaced
| 4:9aa288729b9a | 5:543dba81eb15 |
|---|---|
| 71 logging.info(f'galaxy_flag = {args.galaxy_flag}') | 71 logging.info(f'galaxy_flag = {args.galaxy_flag}') |
| 72 logging.info(f'img_x_bounds = {args.img_x_bounds}') | 72 logging.info(f'img_x_bounds = {args.img_x_bounds}') |
| 73 logging.debug(f'log = {args.log}') | 73 logging.debug(f'log = {args.log}') |
| 74 logging.debug(f'is log stdout? {args.log is sys.stdout}') | 74 logging.debug(f'is log stdout? {args.log is sys.stdout}') |
| 75 logging.debug(f'log_level = {args.log_level}') | 75 logging.debug(f'log_level = {args.log_level}') |
| 76 return | |
| 77 | 76 |
| 78 # Instantiate Tomo object | 77 # Instantiate Tomo object |
| 79 tomo = Tomo(galaxy_flag=args.galaxy_flag) | 78 tomo = Tomo(galaxy_flag=args.galaxy_flag) |
| 80 | 79 |
| 81 # Read input file | 80 # Read input file |
| 82 data = tomo.read(args.input_file) | 81 data = tomo.read(args.input_file) |
| 82 print('data:\n{data.tree}') | |
| 83 return | |
| 83 | 84 |
| 84 # Generate reduced tomography images | 85 # Generate reduced tomography images |
| 85 data = tomo.gen_reduced_data(data, img_x_bounds=args.img_x_bounds) | 86 data = tomo.gen_reduced_data(data, img_x_bounds=args.img_x_bounds) |
| 86 | 87 |
| 87 # Write output file | 88 # Write output file |
