Document running Python directly in the Docker image, and which functions are public

Open
#453 1 comment 0 reactions 1 assignee View on GitHub

@emlynjdavies is already working on this.

Since Nov 19, 2026.

Assessment

This issue has not been assessed yet.

Description

documentation question

Downstream tools call PyOPIA functions directly in the Docker image
(docker run --entrypoint python <image> -c "...") instead of needing a CLI option for
each post-processing task. On the v2.18.0 image, pyopia.io, pyopia.statistics and
pyopia.dataexport.ecotaxa run without TensorFlow or PyTorch, without network access, and
with the project folder mounted read-only. Nothing says this is supported.

Proposal (no code or CLI change):

  1. State in the README and the Dockerfile that running Python in the image is supported.
  2. Name a short list of public functions. Their signatures stay compatible across minor
    releases, with new options added as optional keywords, and any change that alters
    results is noted in the release notes. Starting list:
    • pyopia.io: load_stats, steps_from_xstats, merge_and_save_mfdataset
    • pyopia.statistics: summary_from_stats, d50_from_stats, nd_from_stats, vd_from_stats,
      make_montage, make_montage_scaled, PerClassConcentration
    • pyopia.dataexport.ecotaxa: EcotaxaExporter

Is the list right, and is this level of promise acceptable?

Dominant language
Jupyter Notebook
Stars
19
Forks
7
Avg merge
10d 11h
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SINTEF/pyopia

All issues in SINTEF/pyopia

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.