Coverage for src/precon3d/main.py: 0%

18 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-07-23 03:50 +0000

1import typer 

2 

3import precon3d.aligner, precon3d.shading_correction, precon3d.stitcher, precon3d.post_stitch_utils 

4import precon3d.downscaler, precon3d.cropper, precon3d.resampler, precon3d.utility, precon3d.czi_info 

5 

6from precon3d._my_typer_cli import Color, CustomCLIGroup 

7 

8# app = typer.Typer(no_args_is_help=True) 

9app = typer.Typer( 

10 cls=CustomCLIGroup, 

11 no_args_is_help=True, 

12 add_completion=False, 

13 short_help=( 

14 f"[{Color.FRONT_MATTER}]" 

15 "PRECON3D: (PRE)pare and re(CON)struct serial sectioning montage data into 3D volume 🧊" 

16 f"[/{Color.FRONT_MATTER}]" 

17 ), 

18) 

19 

20# Add subcommands to the routines group 

21app.add_typer(precon3d.czi_info.app, name="czi_info") 

22app.add_typer(precon3d.shading_correction.app, name="shading_correction") 

23app.add_typer(precon3d.stitcher.app, name="stitcher") 

24app.add_typer(precon3d.post_stitch_utils.app, name="post_stitch") 

25app.add_typer(precon3d.aligner.app, name="aligner") 

26app.add_typer(precon3d.cropper.app, name="cropper") 

27app.add_typer(precon3d.downscaler.app, name="downscaler") 

28app.add_typer(precon3d.resampler.app, name="resampler") 

29app.add_typer(precon3d.utility.app, name="utility") 

30 

31 

32@app.callback() 

33def callback(): 

34 """ 

35 PRECON3D: (PRE)pare and re(CON)struct serial sectioning montage data into 3D volume 🧊 

36 """ 

37 

38 

39if __name__ == "__main__": 

40 app()