-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iterator APIs (via ResumableFunctions.jl) (#121)
* Make recom and flip chains an iterable a la GerryChain Python Although this is a breaking change, this brings GerryChain Julia more in line with GerryChain Python and allows the user to save and export state more easily. This API is different from the one proposed in #94 in that it returns a Partition object and the scores. * Add recom_chain and flip_chain functions for backwards compat. The iterators are now exposed in `recom_chain_iter` and `flip_chain_iter` respectively to avoid any breaking changes. * Update type signatures of the iterator APIs * Point to issue on GitHub with the bug in ResumableFunctions.jl * Export iter API * Add note about `Partition` being mutable and changing in-place
- Loading branch information
1 parent
6893a4f
commit bee809d
Showing
4 changed files
with
155 additions
and
21 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
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