Skip to content

Tags: posita/dyce

Tags

v0.6.2

Toggle v0.6.2's commit message
commit a7defd8

Release v0.6.2

* Adds the [``H.draw``][dyce.h.H.draw] convenience method for treating a histogram as a deck rather than a die.

latest

Toggle latest's commit message
Release v0.6.2

* Adds the [``H.draw``][dyce.h.H.draw] convenience method for treating a histogram as a deck rather than a die.

v0.6.1

Toggle v0.6.1's commit message
commit f5e47ba

Release v0.6.1

* Fixes ``P.total`` to return ``#!python 1`` for empty pools, consistent with the empty product (see [this
        explanation](https://www.johndcook.com/blog/2015/04/14/empty-sum-product/)).
* Renames ``dyce.evaluation._LimitT`` to ``dyce.evaluation.LimitT``.
* Fixes issues pertaining to histograms with zero totals after allowing outcomes with zero counts in non-normalized ``H``.
* Fixes issue that would lead to incorrect results when making certain arbitrary selections with heterogeneous pools (e.g., with ``P.rolls_with_counts``).

v0.6.0

Toggle v0.6.0's commit message
commit 452edc6

Release v0.6.0

* Adds the [``expandable`` decorator][dyce.evaluation.expandable] as well as the [``foreach``][dyce.evaluation.foreach] and [``explode``][dyce.evaluation.explode] convenience functions.
* Deprecates [``P.foreach``][dyce.p.P.foreach], [``H.foreach``][dyce.h.H.foreach], and [``H.substitute``][dyce.h.H.substitute].
* Allows outcomes with zero counts in non-normalized [``H`` objects][dyce.h.H].
  Outcomes with zero counts are dropped when calling [``H.lowest_terms``][dyce.h.H.lowest_terms].
  Adds the [``H.zero_fill``][dyce.h.H.zero_fill] convenience method.
* Fixes memoization in [Risus multi-round combat translation](translations.md#modeling-entire-multi-round-combats).
* Migrates from [``setuptools_scm``](https://pypi.org/project/setuptools-scm/) to [``versioningit``](https://pypi.org/project/versioningit/) for more flexible version number formatting.
* Allows deployments to PyPI from CI based on tags.
* Uses JupyterLite instead of Binder for examples.
* Refactors [``P.is_homogeneous`` property][dyce.p.P.is_homogeneous] into a similarly-named method and adds the [``P.total`` method][dyce.p.P.total] property.
* Removes ``H.order_stat_func_for_n`` and instead caches order stat functions for ``n`` inside [``H.order_stat_for_n_at_pos``][dyce.h.H.order_stat_for_n_at_pos].
* Now requires ``numerary>=0.4.0``.

v0.5.2

Toggle v0.5.2's commit message
Release v0.5.2.

* Updates binder links that fix requirements ranges.

v0.5.1

Toggle v0.5.1's commit message
Release v0.5.1.

* Fixes broken binder links in docs.
* Adds ``precision_limit`` argument to [``H.substitute``][dyce.h.H.substitute] and [``H.explode``][dyce.h.H.explode].

v0.5.0

Toggle v0.5.0's commit message
Release v0.5.0.

* Breaks ``dyce.viz`` out into [``anydyce``](https://github.com/posita/anydyce/).
* Removes use of ``#!python numerary.types.…SCU`` types.
* Adds the [``H.foreach``][dyce.h.H.foreach] and [``P.foreach``][dyce.p.P.foreach] class methods.
* Migrates ``#!python resolve_dependent_probability`` to the [``H.foreach``][dyce.h.H.foreach] class method.

v0.4.5

Toggle v0.4.5's commit message
Release v0.4.5.

* Fixes [this bullshit](https://github.community/t/support-theme-context-for-images-in-light-vs-dark-mode/147981/87) (no, really, I’m serious this time)
* Adds [``FilterRoller``][dyce.r.FilterRoller].
* Adds [``SubstitutionRoller``][dyce.r.SubstitutionRoller].

v0.4.4

Toggle v0.4.4's commit message
Release v0.4.4.

* Removes ``…_gh.png`` hack now that [this dumpster fire](https://github.community/t/support-theme-context-for-images-in-light-vs-dark-mode/147981) is at least partially resolved
* Refines Tension Pool example
* Adds *Ironsworn* example
* Removes faulty (correctly-derived, but misapplied) math in Risus “Evens Up” example
* Adds detail around dependent probabilities
* Adds experimental [``resolve_dependent_probability``][dyce.h.resolve_dependent_probability] function

v0.4.3

Toggle v0.4.3's commit message
Release v0.4.3.

* Removes dependencies on deprecated ``numerary.types.…SCT`` tuples
* Adds [Angry GM Tension Pool mechanic](https://theangrygm.com/definitive-tension-pool/) translation