| Conditions | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # pylint: disable=import-outside-toplevel |
||
| 8 | @click.command() |
||
| 9 | @click.argument('input-path', type=click.Path(exists=True)) |
||
| 10 | def main(input_path): |
||
| 11 | """Print information about an image. |
||
| 12 | |||
| 13 | \b |
||
| 14 | Example: |
||
| 15 | $ tiohd input.nii.gz |
||
| 16 | """ |
||
| 17 | # Imports are placed here so that the tool loads faster if not being run |
||
| 18 | import torchio as tio |
||
| 19 | image = tio.ScalarImage(input_path) |
||
| 20 | image.load() |
||
| 21 | print(image) # noqa: T001 |
||
| 22 | return 0 |
||
| 23 | |||
| 28 |