Skip to content

39 MB of generated figure renders are committed under examples/, including four dated re-runs of one example #791

Closed

Description

@iskandr

Problem

Three example directories commit the rendered output of their own generator
scripts, including several dated re-runs of the same example. They are about
39 MB of the repository's 53 MB of tracked content, so most of what a git clone downloads is PNG, SVG and PDF renders that generate.py reproduces from
the checked-in fixtures.

examples/osteosarc_complex_results/runs/ alone holds four timestamped runs
from two days, each a re-render of the same example with more cases than the
last. Nothing selects one of them as the current result: the example's own
README does not mention runs/, and docs/outputs.md:264 points at the parent
directory, not at a run.

Evidence

Read at 7180986.

  • examples/osteosarc_complex_results/runs/ - 255 tracked files, 29 MB, in
    four directories: 2026-09-16T194000Z (18 files), 2026-09-17T002619Z (64),
    2026-09-17T044935Z (78), 2026-09-18T021426Z (95). Each case directory
    holds result.png plus result.svg, and three of the four runs also commit
    a multi-megabyte combined PDF.
  • examples/osteosarc_mutation_figures/ - 8.0 MB;
    examples/osteosarc_evidence_figures/ - 1.4 MB. Same shape: runs/<UTC timestamp>/<case>/ with .png, .svg and .pdf beside a record.json.
  • 260 of the 400 tracked files under examples/ are .png, .svg or .pdf.
  • The renders are reproducible: examples/osteosarc_complex_results/generate.py:19,
    examples/osteosarc_evidence_figures/generate.py:17 and
    examples/osteosarc_mutation_figures/generate.py:201 each default
    --output-root to the runs/ directory, so a run creates a new timestamped
    tree rather than replacing the old one. That is why four of them accumulated.
  • .gitignore has no entry for examples/, so every new run is staged by
    git add -A.
  • MANIFEST.in does not ship these directories, so this is clone and review
    cost, not sdist weight.

Suggested fix

Keep at most one run per example - the current one - and delete the superseded
timestamped trees. Ignore examples/*/runs/ in .gitignore so a local
regeneration is not committed by accident, and have each example's README name
the command that produces the figures. If a rendered figure needs to be
reviewable in the repository, commit one format (SVG) for the current run only,
not PNG and SVG and a combined PDF of every run.

https://claude.ai/code/session_01JHJhwj29oDqoeu7TYd34Pi

Activity

  1. iskandr commented on Nov 20, 2026

    @iskandr
    ContributorAuthor

    Resolved in #894 (v3.61.0): removed ~38.4 MB of rendered example figures under examples/osteosarc_complex_results/runs/, examples/osteosarc_evidence_figures/, and examples/osteosarc_mutation_figures/ while retaining examples/osteosarc_complex_results/source/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions