This page is the file CLAUDE.md of the spam-gui repository, shown as HTML.

spam-gui

Graphical modules for spam (Software for the Practical Analysis of Materials) in a napari window, packaged as spam_gui (command spam-gui). The multimodal registration (src/spam_gui/modules/mmr.py) is the first module and the reference implementation. More modules will follow; the code is being reorganised for them (SPEC.md section 3.4).

Before any change to a module or to the window

spam-gui is made of modules (e.g., the multimodal registration): never call them « tools ». A Python file is a « file », a part of spam (spam.DIC) a « spam package » (SPEC.md, « Words »).

Read SPEC.md first, and follow it. It describes what is common to all the modules: how a module is built, how the window looks and behaves, how large images are handled, how changes are tested, and how to work with the maintainers. Its checklist (section 8) defines when a module is done.

Then read the spec of the module concerned, specs/modules/<module>.md (e.g., specs/modules/mmr.md): what the module does, its steps, its state, and the decisions already taken for it, which must not be undone.

A new module starts with its spec: copy specs/TEMPLATE.md to specs/modules/<module>.md and fill it in with the maintainer before writing code.

Rules that always apply

Commands