Coverage for src/dictk/__init__.py: 75%

8 statements  

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

1"""dictk: Digital Image Correlation Toolkit. 

2 

3CLI vs. API: the `dictk` command-line entry points (`dictk rosta`, 

4`dictk checkerboard`, `dictk astronaut`, ...) write image files to disk — 

5that's their whole job. The corresponding Python API functions 

6(`dictk.rosta`, `dictk.checkerboard`, `dictk.astronaut`, ...) do not 

7perform any file I/O; they return NumPy arrays only. This keeps the API 

8composable in a functional style — arrays 

9can be piped through further functions (e.g. `dictk.image.combine`) 

10before anything touches disk — and callers who do want a file call 

11`dictk.image.write` explicitly as a separate, deliberate step. 

12""" 

13 

14from importlib.metadata import PackageNotFoundError, version 

15 

16from dictk.image import astronaut, checkerboard 

17from dictk.rosta import rosta 

18 

19try: 

20 __version__ = version("dictk") 

21except PackageNotFoundError: 

22 __version__ = "0.0.0+unknown" 

23 

24__all__ = [ 

25 "astronaut", 

26 "checkerboard", 

27 "rosta", 

28 "__version__", 

29]