Skip to content

Add the of type from JuliaBUGS.jl#168

Open
sunxd3 wants to merge 1 commit into
mainfrom
sunxd/of-type-migration
Open

Add the of type from JuliaBUGS.jl#168
sunxd3 wants to merge 1 commit into
mainfrom
sunxd/of-type-migration

Conversation

@sunxd3
Copy link
Copy Markdown
Member

@sunxd3 sunxd3 commented Jun 1, 2026

not ready yet.

code and doc are upstreamed from JuliaBUGS.jl

Move the self-contained `of` type-specification system into AbstractPPL so
downstream packages can share a common vocabulary for the shape, element type,
and support of model variables (previously in JuliaBUGS/src/of_type.jl).

- src/of.jl: the `of`/`@of` system minus the JuliaBUGS-specific
  `of(::BUGSModel)` method; only external dependency is Random.randexp.
- Export `of` and `@of`; mark the `Of*` types and flatten/unflatten/
  inspection helpers `public` (guarded for the 1.10 compat floor).
- Add test/of.jl (wired into the Tests group) and docs/src/of.md.
- Bump to 0.15.3 with a HISTORY entry.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

❌ Patch coverage is 70.75243% with 241 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.22%. Comparing base (9ebf18f) to head (c500215).

Files with missing lines Patch % Lines
src/of.jl 70.75% 241 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #168      +/-   ##
==========================================
- Coverage   89.39%   81.22%   -8.18%     
==========================================
  Files          16       17       +1     
  Lines        1056     1880     +824     
==========================================
+ Hits          944     1527     +583     
- Misses        112      353     +241     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

AbstractPPL.jl documentation for PR #168 is available at:
https://TuringLang.github.io/AbstractPPL.jl/previews/PR168/

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.

1 participant