From 88f796723220f9ebf8e9233bfe403c17446679c9 Mon Sep 17 00:00:00 2001 From: Vanessa Arndorfer Date: Fri, 4 Dec 2026 10:27:11 -0800 Subject: [PATCH 1/3] add badges from python-template to README --- README.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7bd6257..e841b0a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # GIAnT-Python +![Version](https://img.shields.io/badge/version-0.1.14-black) +[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) +![Interrogate](https://img.shields.io/badge/interrogate-100.0%25-brightgreen) +![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen) [![License](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE) ![Python](https://img.shields.io/badge/python->=3.10-blue?logo=python) +![support](https://img.shields.io/badge/support-supported-brightgreen) GIAnT-Python is a Python package for processing glutamate imaging data, with advanced capabilities for SLAP2 recordings. @@ -30,15 +35,19 @@ Not supported: SILo for recordings other than SLAP2 raster, standalone deconvolu ## Installation -From the repository root, with Python 3.10 or later: +If you choose to clone the repository, you can install the package by running the following command from the root directory of the repository: ```bash -pip install -e . +uv sync ``` -Installation requires Git/network access for the `slap2_utils` dependency. Interactive ROI drawing uses OpenCV and tkinter; tkinter must be available in the Python installation. Headless extraction does not need a display. - -For development setup and documentation builds, see [CONTRIBUTING.md](CONTRIBUTING.md). +## Development +Please test your changes using linting and testing: +```bash +uv run interrogate --verbose # Checks docstring coverage +uv run ruff check # Runs format checks +uv run pytest # Check tests and test coverage +``` ## Build SLAP2 trial tables @@ -489,4 +498,13 @@ For SLAP2 recordings, please also cite the microscope: **Occasional updates:** no fixed update schedule. Community involvement through issues and pull requests is welcome. -[^documentation]: Current documentation has been generated by large language models (LLMs) from human-verified code. \ No newline at end of file +[^documentation]: Current documentation has been generated by large language models (LLMs) from human-verified code. + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +## Template + +Generated from [python-templates](https://github.com/AllenNeuralDynamics/python-templates) (`{{ template_type }}` @ `{{ _copier_answers._commit | default('unknown') }}`). +The template version is also recorded in `.copier-answers.yml`. To pull in template changes, run `uvx copier update`. \ No newline at end of file From 06955d95887bc9cc062d78f308a2a0f0df8ac394 Mon Sep 17 00:00:00 2001 From: Vanessa Arndorfer Date: Fri, 4 Dec 2026 10:48:59 -0800 Subject: [PATCH 2/3] test workflow --- .github/workflows/tag_and_publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index 8ddca89..2652047 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -1,8 +1,5 @@ name: Tag and publish -on: - push: - branches: - - main +on: workflow_dispatch jobs: update_badges: From f9e846c86356aeb27531a9b0e5f9eac6b6a18c11 Mon Sep 17 00:00:00 2001 From: Vanessa Arndorfer Date: Fri, 4 Dec 2026 11:24:23 -0800 Subject: [PATCH 3/3] revert test dispatch --- .github/workflows/tag_and_publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index 2652047..8ddca89 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -1,5 +1,8 @@ name: Tag and publish -on: workflow_dispatch +on: + push: + branches: + - main jobs: update_badges: