Skip to content

v1.1.0: bug fixes and repo cleanup#4

Merged
JamesOBrien2 merged 3 commits into
mainfrom
refactor/public-release-cleanup
Jun 25, 2026
Merged

v1.1.0: bug fixes and repo cleanup#4
JamesOBrien2 merged 3 commits into
mainfrom
refactor/public-release-cleanup

Conversation

@JamesOBrien2

@JamesOBrien2 JamesOBrien2 commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Several bugs found during a post-release review, fixed alongside general repo tidying.

The crosshair lines in standalone map SVGs were drawn using the full SVG canvas extent rather than the circle boundary, causing them to overshoot into the %VBur label area. The --map-radius and --sphere-radius parameters were being conflated in the CLI pipeline, compute_steric_map and the map SVG writer were receiving the display radius instead of the analysis radius, so the two flags were not truly independent. The CSD radii fallback for unknown elements was returning default × 1.17 rather than default, making the behaviour inconsistent with the Bondi sets. The colorbar unit label read (A) rather than (Å).

On the repo side, the logo was an SVG file wrapping a 5.9 MB embedded PNG with no vector content, replaced here with the PNG directly. A developer script for validation was removed as it duplicated what the test suite already covers. Dependency group definitions in pyproject.toml were consolidated. A test that read committed gallery assets rather than exercising live code was replaced by the equivalent tmp_path-based test that already existed.

Bug fixes:
- Fix crosshair lines in standalone map SVG extending beyond the circle
  boundary into the %VBur label area (export.py now uses cx±r_px / cy±r_px,
  matching the overlay convention)
- Fix sphere_radius/map_radius conflation in CLI pipeline: compute_steric_map,
  write_map_svg, and write_xyzrender_overlay_svg now each receive the correct
  parameter independently
- Fix CSD radii fallback returning default*1.17 instead of default, making
  unknown-element behaviour inconsistent across radius sets

Quality / hygiene:
- Fix ruff format violation in tests/test_multi_xyz.py (was blocking CI)
- Fix colorbar unit label (A) -> (Å) in visual.py
- Fix fragile local import in scripts/run_examples.py via sys.path.insert
- Replace logo SVG (SVG wrapper around a 5.9 MB embedded PNG) with the
  extracted PNG directly; update README reference
- Consolidate duplicate dev dependency groups in pyproject.toml
- Remove scripts/validate_references.py (superseded by test_validation.py
  and test_sambvca_examples.py)
- Remove test_readme_steric_map_example_has_no_quadrant_labels which read
  committed assets rather than testing live code paths; covered by
  test_map_svg_quadrant_labels_are_opt_in using tmp_path
Coverage reporting is best-effort; a third-party GPG verification
failure should not block merges.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/stericrender/radii.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@JamesOBrien2
JamesOBrien2 marked this pull request as ready for review June 25, 2026 12:00
@JamesOBrien2
JamesOBrien2 merged commit 317899a into main Jun 25, 2026
1 check passed
@JamesOBrien2
JamesOBrien2 deleted the refactor/public-release-cleanup branch June 25, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants