Skip to content

Make SVG standard widths and heights available in the class definition#3197

Merged
hyanwong merged 4 commits into
tskit-dev:mainfrom
hyanwong:svg-nits
Jun 8, 2025
Merged

Make SVG standard widths and heights available in the class definition#3197
hyanwong merged 4 commits into
tskit-dev:mainfrom
hyanwong:svg-nits

Conversation

@hyanwong
Copy link
Copy Markdown
Member

@hyanwong hyanwong commented Jun 7, 2025

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.63%. Comparing base (accc1de) to head (dcb9cff).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3197   +/-   ##
=======================================
  Coverage   89.62%   89.63%           
=======================================
  Files          28       28           
  Lines       31975    31978    +3     
  Branches     5873     5872    -1     
=======================================
+ Hits        28659    28662    +3     
  Misses       1886     1886           
  Partials     1430     1430           
Flag Coverage Δ
c-tests 86.66% <ø> (ø)
lwt-tests 80.38% <ø> (ø)
python-c-tests 88.18% <ø> (ø)
python-tests 98.86% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
python/tskit/drawing.py 98.36% <100.00%> (+0.01%) ⬆️
python/tskit/trees.py 98.88% <100.00%> (-0.01%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hyanwong
Copy link
Copy Markdown
Member Author

hyanwong commented Jun 7, 2025

I just tacked on another code-duplication removing nit, taking repetitive code out of trees.py to make a standard draw() function in the drawing module

@hyanwong hyanwong force-pushed the svg-nits branch 2 times, most recently from 9a718be to 7240db6 Compare June 7, 2025 19:15
hyanwong added 3 commits June 7, 2025 21:36
This currently does nothing anyway.
Put a placeholder in, then actually place it on `draw`.
This allows the preamble to be (re)set after init but before actually drawing, which
can be useful for complex composite drawings.
@hyanwong hyanwong added this pull request to the merge queue Jun 8, 2025
Merged via the queue into tskit-dev:main with commit 47ef0d5 Jun 8, 2025
19 checks passed
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