Commit 2252a9b
Depreciate
* 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 <[email protected]>
* 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 <[email protected]>
* 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_sampleable` + removed the unnecessary macro exports
that we no longer need
* updated more docstrings
* added testing of deprecation warning of `@submodel` + replaced some
usages in tests (though we don't support some of these so we cant' do
that yet)
* Update test/compiler.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* renamed `returned_quantities` to `returned` as requested
* removed redundant `SampleableModelWrapper` in favour of
`ReturnedModelWrapper` + introduced `rand_like!!` to hide explicit
calls to `_evaluate!!`
* updated tests + docstrings + warnings to use `returned`
* updated docs
* formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/model.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix docs
* export `to_sampleable` and add to docs
* fixed typo in warning
* removed unnecessary import in docstring
* added docstring to `rand_like!!`
* fixed docstring for `returned(model)`
* improvements to docstrings thanks to @penelopesym
Co-authored-by: Penelope Yong <[email protected]>
* added abstract type `Distributional` and concrete type `Sampleable`,
in addition to method `to_submodel`
* replaced usages of `returned` with `to_submodel`
* formatting
* Update docs/src/api.md
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* removed export of `to_sampleable` since it currently has no purpose +
fixed docs for `returned`
* formatting
* updated docstring for `condition` and `fix` to not use `@submdoel`
* added `check_tilde_rhs` for `Sampleable`
* let the field of sampleable determine whether it works or not
* add automatic prefixing of submodels + remove support for dot-tilde
since this is ambigious in this case
* added automatic prefixing for sub-models involved in `~` statements
* updated depwarn for `@submodel` and tests
* formatting
* updated docstrings
* updated docs
* added more depwarns to the doctests to see if that helps (though I
don't understand why this is needed for Documenter.jl)
* forgot one
* replaced usage of `generated_quantities` with `returned`
* foxed docstring for `to_submodel`
* patch version bump
---------
Co-authored-by: Xianda Sun <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hong Ge <[email protected]>
Co-authored-by: Penelope Yong <[email protected]>@submodel l ~ m in favour of l ~ to_submodel(m); rename generated_quantities to returned (#696)1 parent 82842bc commit 2252a9b
File tree
13 files changed
+456
-120
lines changed- docs/src
- ext
- src
- test
- ext
13 files changed
+456
-120
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
| |||
110 | 104 | | |
111 | 105 | | |
112 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
113 | 135 | | |
114 | 136 | | |
115 | 137 | | |
| |||
118 | 140 | | |
119 | 141 | | |
120 | 142 | | |
121 | | - | |
| 143 | + | |
122 | 144 | | |
123 | 145 | | |
124 | | - | |
| 146 | + | |
125 | 147 | | |
126 | 148 | | |
127 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| |||
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| |||
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
| |||
172 | 186 | | |
173 | 187 | | |
174 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
175 | 194 | | |
176 | 195 | | |
177 | 196 | | |
| |||
321 | 340 | | |
322 | 341 | | |
323 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
324 | 348 | | |
325 | | - | |
| 349 | + | |
326 | 350 | | |
327 | 351 | | |
328 | 352 | | |
| |||
573 | 597 | | |
574 | 598 | | |
575 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
576 | 605 | | |
577 | 606 | | |
578 | 607 | | |
| |||
585 | 614 | | |
586 | 615 | | |
587 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
588 | 622 | | |
589 | 623 | | |
590 | 624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
284 | 312 | | |
285 | 313 | | |
286 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments