From 5e64f31a2647fdbb82c2873c9a120d2d3da625bf Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 19:35:37 +0000 Subject: [PATCH] Writing tools: how to make the small.tif the test examples use Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WX6rdRdA72nsUjZvTXFSbP --- docs/AUTHORING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/AUTHORING.md b/docs/AUTHORING.md index 7a89e4d..d6eeac6 100644 --- a/docs/AUTHORING.md +++ b/docs/AUTHORING.md @@ -138,6 +138,14 @@ Without Jupyter (in CI, or for a notebook someone else wrote): `labconstrictor-t `test` runs each tool through a real worker, as the hosts do, on small samples: +The examples below use `small.tif`, a 64 x 64 test image. To make one (any small image works for the smoke test): + +```bash +python -c "import numpy, tifffile; tifffile.imwrite('small.tif', numpy.random.default_rng(0).random((64, 64), dtype='float32'))" +``` + +Then: + ```bash labconstrictor-tools test --module my_app_lc_tools --pythonpath src --cases tests.json labconstrictor-tools test --module my_app_lc_tools --pythonpath src --sample image=small.tif # a smoke test of every tool