Skip to content

Amend SEQoutput.plot() and SEQuential.plot(), re-enable Python 3.10, add some more validation checks, and amend some defaults to match R package#38

Merged
remlapmot merged 15 commits intomainfrom
devel-2026-03-20
Mar 22, 2026
Merged

Amend SEQoutput.plot() and SEQuential.plot(), re-enable Python 3.10, add some more validation checks, and amend some defaults to match R package#38
remlapmot merged 15 commits intomainfrom
devel-2026-03-20

Conversation

@remlapmot
Copy link
Copy Markdown
Contributor

@remlapmot remlapmot commented Mar 20, 2026

This,

  • Fixes SEQoutput.plot() to display figure by calling plt.show() instead of printing repr
  • Fixes SEQuential.plot() to display figure by calling plt.show()
  • Re-enables Python 3.10 as I think the lifelines package works under this once more
  • Adds some more of the validation checks in the R package
  • Amends the default values of weight_preexpansion, plot_type, and ncores to match those in SEQTaRget

- `test_sequential_plot_returns_figure` — `SEQuential.plot()` stores a real `Figure`, not just a repr
- `test_seqoutput_plot_shows_figure` — `SEQoutput.plot()` runs without error after `collect()`
- `test_seqoutput_plot_raises_without_km_graph` — graceful error when `km_curves=False`
- `test_sequential_plot_risk` — risk plot type
- `test_sequential_plot_survival` — survival plot type
- `test_sequential_plot_subgroups` — subgroup faceted plot
The lifelines package seems to allow Python 3.10 again.
Fix bootstrap_sample and selection_sample lower bounds

Add weight_min/max and followup_min/max ordering checks
@remlapmot remlapmot requested a review from ryan-odea March 20, 2026 12:50
@remlapmot remlapmot changed the title Amend SEQoutput.plot() and SEQuential.plot(), re-enable Python 3.10, and add some more validation checks Amend SEQoutput.plot() and SEQuential.plot(), re-enable Python 3.10, add some more validation checks, and amend some defaults to match R package Mar 22, 2026
Copy link
Copy Markdown
Collaborator

@ryan-odea ryan-odea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good Tom! Great work.

@remlapmot remlapmot merged commit fe9764a into main Mar 22, 2026
5 checks passed
@ryan-odea ryan-odea deleted the devel-2026-03-20 branch March 23, 2026 17:00
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