Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions regression/basic-flatfield-estimation-tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
FROM tensorflow/tensorflow:2.15.0-gpu

# cat /etc/os-release
#
# NAME="Ubuntu"
# VERSION="20.04.5 LTS (Focal Fossa)"
# ID=ubuntu
# ID_LIKE=debian
# PRETTY_NAME="Ubuntu 20.04.5 LTS"
# VERSION_ID="20.04"
# HOME_URL="https://www.ubuntu.com/"
# SUPPORT_URL="https://help.ubuntu.com/"
# BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
# PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
# VERSION_CODENAME=focal
# UBUNTU_CODENAME=focal

# Install Python 3.12 from source (not available in deadsnakes PPA for Ubuntu 20.04)
RUN apt update && \
apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev \
libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev curl git && \
libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev liblzma-dev curl git && \
cd /tmp && \
wget https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz && \
tar -xzf Python-3.12.7.tgz && \
Expand Down Expand Up @@ -59,7 +44,8 @@ COPY . ${EXEC_DIR}/image-tools

# Install the tool
WORKDIR ${EXEC_DIR}/image-tools/${TOOL_DIR}
RUN pip3 install . --no-cache-dir
# Fresh get-pip can lag; upgrade pip for PEP 517 / git URL dependency handling.
RUN pip3 install --upgrade pip && pip3 install . --no-cache-dir
WORKDIR ${EXEC_DIR}

# Set the entrypoint
Expand Down
23 changes: 10 additions & 13 deletions regression/basic-flatfield-estimation-tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,30 @@ of `plugin.json` into the pop-up window and submit.

## Running tests

Install dev dependencies (pytest, etc.), then run pytest:
From this directory, install the project in editable mode with the `dev` extra,
then run pytest:

```bash
uv sync --extra dev
uv pip install -e ".[dev]"
uv run pytest
```

This runs all tests in the `tests` directory.

## Installation

Install dependencies using uv:
```bash
uv sync
```
Create a virtual environment if you do not already have one (`uv venv`), then
from this directory:

Or including dev dependencies (linters, pytest, pre-commit) from
`[project.optional-dependencies]`:
```bash
uv sync --extra dev
```
**Runtime dependencies only (editable install):**

To install every optional extra at once:
```bash
uv sync --all-extras
uv pip install -e .
```

This project defines a single optional extra (`dev`). If more extras are added
later, install them with `uv pip install -e ".[extra1,extra2]"` as needed.

Since this plugin is only a thin wrapper around the `basicpy` package, the tests are limited to verifying that the plugin is able to run and that the output images are generated.
The tests do not verify that the output images are correct.
This check is performed by the `basicpy` package, which has its own tests.
Expand Down
Loading