diff --git a/docs/AUTHORING.md b/docs/AUTHORING.md index b174bc1..7a89e4d 100644 --- a/docs/AUTHORING.md +++ b/docs/AUTHORING.md @@ -31,7 +31,7 @@ To get a starter file, let `init` write it: labconstrictor-tools init src/my_app_lc_tools/__init__.py ``` -The starter is this example without `Name("blurred")`, so its output is named `image`, after its type. `init` creates the folder and prints the `check` and `register` commands for it. +The starter is the example above, so the tests.json example further down passes on it unchanged. `init` creates the folder and prints the `check` and `register` commands for it. **Name the module `_lc_tools`.** The app's installer registers its tools only if the app's Python package `` comes with a module named exactly `_lc_tools`. For the package `nucleisky` that is `src/nucleisky_lc_tools/__init__.py`. Any other name works from the command line but is never registered by the installer. The app's release bundles everything under `src/` automatically, so you do not edit `construct.yaml` or `setup.py`. diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md index f6a1a9b..e65538d 100644 --- a/docs/OPERATIONS.md +++ b/docs/OPERATIONS.md @@ -10,7 +10,7 @@ Every front-end (command line, napari, Fiji, QuPath, notebooks) appends to one f labconstrictor-tools logs --path # where the file is labconstrictor-tools doctor # the state of the installation -A support bundle holds paths, app names and the last run records: look through it before you share it. +A support bundle can hold private details: file paths (which show your user name and folder names), the names of your apps, and the last 10 run records with the settings and file names of each run. Open the zip and remove what you do not want to share before you attach it. labconstrictor-tools support-bundle # a zip of logs, registered apps, the last 10 run records and versions, to attach to a bug report diff --git a/docs/PUBLISHING.md b/docs/PUBLISHING.md index c1f23c7..b3025bc 100644 --- a/docs/PUBLISHING.md +++ b/docs/PUBLISHING.md @@ -13,7 +13,7 @@ If you only want to install something, use [Install an app](https://cellmigratio | QuPath extension | The jar from the GitHub release, installed by hand ([QuPath guide](https://cellmigrationlab.github.io/LabConstrictor-Site/guides/qupath/)) | | Apps | The installer from the app's GitHub release, found through its page in the LabConstrictor App Centre | -Every release is a GitHub release made by a maintainer. None of the plugins is in a Fiji update site, on PyPI or in a QuPath extension catalog yet; the steps and open questions for those are in [TESTING.md](TESTING.md#open-items-publishing-channels). +Every release is a GitHub release made by a maintainer. None of the plugins is in a Fiji update site, on PyPI or in a QuPath extension catalog yet. ## Fiji diff --git a/labconstrictor_tools/cli.py b/labconstrictor_tools/cli.py index 58c0b9b..1343b65 100644 --- a/labconstrictor_tools/cli.py +++ b/labconstrictor_tools/cli.py @@ -601,11 +601,11 @@ def _environment_report() -> str: from typing import Annotated -from labconstrictor_tools import Image, ImageOut, Min, check_cancel, progress, tool +from labconstrictor_tools import Image, ImageOut, Min, Name, check_cancel, progress, tool @tool("Gaussian blur") -def blur(image: Image, sigma: Annotated[float, Min(0)] = 2.0) -> ImageOut: +def blur(image: Image, sigma: Annotated[float, Min(0)] = 2.0) -> Annotated[ImageOut, Name("blurred")]: """Smooth an image. Args: