Skip to content

docs: Improving documentation for examples#275

Open
Siel wants to merge 2 commits into
mainfrom
272-adding-explanations-for-the-examples
Open

docs: Improving documentation for examples#275
Siel wants to merge 2 commits into
mainfrom
272-adding-explanations-for-the-examples

Conversation

@Siel

@Siel Siel commented Jun 17, 2026

Copy link
Copy Markdown
Member

Merging this PR should close #272

Copilot AI review requested due to automatic review settings June 17, 2026 12:03
@Siel Siel linked an issue Jun 17, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds short rustdoc introductions to several Rust examples to make the intent of each example clearer (addressing issue #272’s request for narrative context alongside code).

Changes:

  • Added //! module-level documentation headers to multiple examples/*.rs files describing what each example demonstrates.
  • Included run instructions where relevant for DSL JIT examples.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
examples/sde_readme.rs Adds a brief description of the minimal SDE workflow example.
examples/one_compartment.rs Documents the comparison between analytical vs ODE solutions.
examples/ode_readme.rs Adds a short overview of the minimal ODE workflow example.
examples/dsl_runtime_jit.rs Documents runtime JIT compilation of an ODE model from DSL text (with run command).
examples/dsl_jit_analytical_covariates.rs Documents JIT DSL vs analytical! parity check with covariates (with run command).
examples/covariates.rs Describes time-varying covariates, lag time, and repeated dosing in an ODE model.
examples/analytical_readme.rs Adds an overview of the analytical! macro example workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +3
//! This example showcases the use of the `analytical!` macro to define a simple one-compartment model with first-order absorption,
//! and the basic workflow of creating a subject, defining parameters, and estimating predictions.

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branch272-adding-explanations-for-the-examples
Testbedmhovd-pgx

⚠️ WARNING: Truncated view!

The full continuous benchmarking report exceeds the maximum length allowed on this platform.

🚨 2 Alerts

🐰 View full continuous benchmarking report in Bencher

@mhovd mhovd changed the title Adding explanations to the examples #272 docs: Improving documentation for examples Jun 18, 2026
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.

Adding explanations for the examples

3 participants