-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added `subset` which can extract a subset of the varinfo * added testing of `subset` for `VarInfo` * formatting * added implementation of `merge` for `VarInfo` and tests for it * more tests * formatting * improved merge_metadata for NamedTuple inputs * added proper handling of the `vals` in `subset` * added docs for `subset` and `merge` * added `subset` and `merge` to documentation * formatting * made merge and subset part of the AbstractVarInfo interface * added implementations `subset` and `merge` for `SimpleVarInfo` * follow standard merge semantics where the right one takes precedence * added proper testing of merge and subset for SimpleVarInfo too * forgotten inclusion in previous commit * Update src/simple_varinfo.jl Co-authored-by: David Widmann <[email protected]> * remove two-argument impl of merge * formatting * forgot to add more formatting * removed 2-arg version of merge for abstract varinfo in favour of 3-arg version * allow inclusion of threadsafe varinfo in setup_varinfos * more tests for thread safe varinfo * bugfixes for link and invlink methods when using thread safe varinfo * attempt at fixing docs * fixed missing test coverage * formatting --------- Co-authored-by: David Widmann <[email protected]>
- Loading branch information
Showing
9 changed files
with
716 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ export AbstractVarInfo, | |
SimpleVarInfo, | ||
push!!, | ||
empty!!, | ||
subset, | ||
getlogp, | ||
setlogp!!, | ||
acclogp!!, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.