Skip to content

Stop rendering scCODA trees inline after saving - #1161

Merged
Zethson merged 1 commit into
mainfrom
fix/coda-tree-render-save
Oct 2, 2026
Merged

Zethson merged 1 commit into
mainfrom
fix/coda-tree-render-save

Conversation

@Zethson

@Zethson Zethson commented Oct 2, 2026

Copy link
Copy Markdown
Member

plot_draw_tree and plot_draw_effects no longer render the tree inline after writing save, which required IPython and failed outside notebooks, and the intermediate image for show_leaf_effects goes to a temporary directory.
Saving tree plots works from scripts and no longer leaves tree_effect.png in the working directory.

plot_draw_tree and plot_draw_effects rendered the tree a second time with "%%inline" after writing the requested file, which requires IPython and failed in plain scripts although the file had already been written.
Return after saving unless a figure is requested, and write the intermediate tree image of show_leaf_effects to a temporary directory instead of the working directory.
Notebook behaviour without save is unchanged.
@codecov-commenter

codecov-commenter commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.67%. Comparing base (72498c0) to head (cc244b1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1161   +/-   ##
=======================================
  Coverage   75.67%   75.67%           
=======================================
  Files          55       55           
  Lines        8431     8432    +1     
=======================================
+ Hits         6380     6381    +1     
  Misses       2051     2051           
Files with missing lines Coverage Δ
src/pertpy/tools/_coda/_base_coda.py 60.84% <100.00%> (+0.06%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Zethson
Zethson merged commit 90e3c2f into main Oct 2, 2026
23 checks passed
@Zethson
Zethson deleted the fix/coda-tree-render-save branch October 2, 2026 10:59
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