Metadata-Version: 2.4
Name: dacapo-toolbox
Version: 1.1.1
Summary: A suite of tools for large scale ND training.
Project-URL: Documentation, https://pattonw.github.io/dacapo-toolbox
Project-URL: Source, https://github.com/pattonw/dacapo-toolbox
Project-URL: Issues, https://github.com/pattonw/dacapo-toolbox/issues
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: edt>=3.0.0
Requires-Dist: funlib-persistence>=0.8.1
Requires-Dist: gunpowder>=1.5.0
Requires-Dist: scikit-learn>=1.7.1
Requires-Dist: torch>=2.6.0
Provides-Extra: postprocessing
Requires-Dist: volara>=2.1.1; extra == "postprocessing"
Requires-Dist: volara-ml[torch]>=1.2.0; extra == "postprocessing"
Provides-Extra: vis
Requires-Dist: matplotlib>=3.10.5; extra == "vis"
Requires-Dist: scikit-image>=0.24; extra == "vis"
Requires-Dist: scipy>=1.13; extra == "vis"
Provides-Extra: accelerators
Requires-Dist: accelerate>=1.10.0; extra == "accelerators"
Requires-Dist: lightning>=2.5.3; extra == "accelerators"
Provides-Extra: sample-datasets
Requires-Dist: wget>=3.2; extra == "sample-datasets"
Provides-Extra: examples
Requires-Dist: torchvision>=0.22.0; extra == "examples"

![dacapo-toolbox](docs/source/_static/dacapo-toolbox-logo.png)
[![tests](https://github.com/pattonw/dacapo-toolbox/actions/workflows/tests.yaml/badge.svg)](https://github.com/pattonw/dacapo-toolbox/actions/workflows/tests.yaml)
[![lint](https://github.com/pattonw/dacapo-toolbox/actions/workflows/lint.yaml/badge.svg)](https://github.com/pattonw/dacapo-toolbox/actions/workflows/lint.yaml)
[![docs](https://github.com/pattonw/dacapo-toolbox/actions/workflows/docs.yaml/badge.svg)](https://pattonw.github.io/dacapo-toolbox)
[![publish](https://github.com/pattonw/dacapo-toolbox/actions/workflows/publish.yaml/badge.svg)](https://pypi.org/project/dacapo-toolbox/)

# DaCapo-Toolbox

> A simple interface for large scale microscopy training and post processing

**Documentation:** https://pattonw.github.io/dacapo-toolbox

## What is DaCapo-Toolbox?

DaCapo-Toolbox wraps powerful tools for large scale microscopy training and evaluation such as:
[gunpowder](https://github.com/funkelab/gunpowder), [daisy](https://github.com/funkelab/daisy), and
[volara](https://github.com/e11bio/volara) in simple interfaces that abstract away the intricacies
of the specific tools and just provides interfaces in common formats such as
[zarr](https://zarr.readthedocs.io/en/stable/), [torch](https://pytorch.org), [dask](https://dask.org),
and [numpy](https://numpy.org).

## Install

```bash
pip install dacapo-toolbox    # or: uv add dacapo-toolbox
```

## Usage

See the [DaCapo-Toolbox docs](https://pattonw.github.io/dacapo-toolbox)

## Contributing

The commands below are the ones CI runs, so a green local run means a green PR.

```bash
git clone https://github.com/pattonw/dacapo-toolbox
cd dacapo-toolbox
uv sync --extra vis --extra postprocessing          # dev tools + the extras the tests use (from uv.lock)
uv run pytest                                       # tests with coverage
uv run pytest --no-cov tests/<file>.py              # one file, without the coverage floor
uv run ruff check . && uv run ruff format --check . # lint and formatting
uv run ty check src/dacapo_toolbox                  # types
just docs                                           # docs (needs just, pandoc, ffmpeg)
```

`uv.lock` pins the development environment; the `lock-upgrade` workflow refreshes it monthly and opens a pull request.
