• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TuringLang / DynamicPPL.jl / 12158072125

04 Dec 2024 10:43AM UTC coverage: 86.481% (+0.09%) from 86.388%
12158072125

push

github

web-flow
Depreciate`@submodel l ~ m` in favour of `l ~ to_submodel(m)`; rename `generated_quantities` to `returned`  (#696)

* Added `@returned_quantities` macro

* Added `@returned_quantities` to the docs

* Fixed names of doctests for `@returned_quantities`

* Update src/submodel_macro.jl

Co-authored-by: Xianda Sun <5433119+sunxd3@users.noreply.github.com>

* Added `@prefix` macro which calls `prefix` with a `Val` argument to
make things easier to basic users

* Convert the result of `prefix_expr` in `@prefix` into a `Sybmol`
before wrapping in `Val`

* Export `prefix` and `@prefix`

* Updated docstring for `@returned_quantities`

* Fixed bug in `rand` for `Model` where it would duplicate the non-leaf
contexts in `model.context`

* Update src/contexts.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Added `prefix` and `@prefix` to docs

* removed the prefix=... syntax for `@returned_quantities`

* added deprecation.jl + deprecated `generated_quantities` in favour of `returned_quantities`

* removed export of `prefix` and `generated_quantities` (the latter is
exported by the deprecation macro)

* updated `DynamicPPLMCMCChainsExt` to define `returned_quantities`

* updated docs

* Update docs/src/api.md

Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com>

* improved docstring for `prefix` and `@prefix`

* added `@returned_quantities` macro taking two arguments + removed
`returned_quantities` from exported functions

* updated docs to reflect the new two-argument `@returned_quantities`

* added depwarn to `@submodel` macro

* fixed reference

* fixed reference to `@prefix` in `@returned_quantities` macro

* actually fixed doc references

* updated doctests for `@submodel` to include the depwarn + added
warning regarding deprecation of `@submodel`

* added `to_sampleable` and limited `~` handling for submodels

* added docs to `to_samp... (continued)

34 of 36 new or added lines in 6 files covered. (94.44%)

30 existing lines in 11 files now uncovered.

3640 of 4209 relevant lines covered (86.48%)

1160979.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/ext/DynamicPPLForwardDiffExt.jl


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc