Skip to content

Commit f764a8a

Browse files
mark wilds as experimental pending decision on #108
1 parent f7eccf4 commit f764a8a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/icepool/evaluators.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def __init__(self,
204204
Args:
205205
targets: Either a collection of outcomes, possibly with repeated elements.
206206
Or a mapping from outcomes to counts.
207-
wilds: A collection of outcomes to treat as wilds.
207+
wilds: EXPERIMENTAL: A collection of outcomes to treat as wilds.
208+
This API is likely to change in the future.
208209
"""
209210
if isinstance(targets, Mapping):
210211
self._targets = targets

src/icepool/outcome_count_generator.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ def contains_subset(self,
184184
Args:
185185
targets: Either a collection of outcomes, counting once per appearance.
186186
Or a mapping from outcomes to target counts.
187-
wilds: A collection of outcomes that will be treated as wilds.
187+
wilds: EXPERIMENTAL: A collection of outcomes to treat as wilds.
188+
This API is likely to change in the future.
188189
"""
189190
return icepool.ContainsSubsetEvaluator(targets,
190191
wilds=wilds).evaluate(self)
@@ -203,7 +204,8 @@ def intersection_size(self,
203204
Args:
204205
targets: Either a collection of outcomes, counting once per appearance.
205206
Or a mapping from outcomes to target counts.
206-
wilds: A collection of outcomes that will be treated as wilds.
207+
wilds: EXPERIMENTAL: A collection of outcomes to treat as wilds.
208+
This API is likely to change in the future.
207209
"""
208210
return icepool.IntersectionSizeEvaluator(targets,
209211
wilds=wilds).evaluate(self)
@@ -217,9 +219,8 @@ def best_matching_set(self,
217219
Args:
218220
include_outcome: If `True`, the result outcomes will be tuples
219221
`(set_size, outcome)`. Greater outcomes will be prioritized.
220-
wilds: These will be combined with the best matching set of
221-
non-wilds. If all draws are wild, the max outcome in the
222-
generator will be taken (even if it has 0 quantity).
222+
wilds: EXPERIMENTAL: A collection of outcomes to treat as wilds.
223+
This API is likely to change in the future.
223224
224225
Returns:
225226
A `Die` with outcomes (set_size, outcome).

0 commit comments

Comments
 (0)