Skip to content

Commit 40f1802

Browse files
committed
Update PolicyEngine Core
1 parent a15c188 commit 40f1802

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [3.27.0] - 2026-06-04
2+
3+
### Added
4+
5+
- Forbid random number generation inside variable formulas. A rules-engine formula must be a pure, deterministic function of its inputs, so any call to `numpy.random` or the standard library `random` module while a formula runs now raises `NonDeterministicFormulaError`. Stochastic inputs must be precomputed deterministically when building the dataset. Removes the per-variable `np.random.seed` previously applied before each calculation, which existed only to make formula-level randomness reproducible.
6+
7+
18
## [3.26.11] - 2026-05-21
29

310
### Fixed

changelog.d/forbid-randomness-in-formulas.added.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "policyengine-core"
3-
version = "3.26.11"
3+
version = "3.27.0"
44
description = "Core microsimulation engine enabling country-specific policy models."
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)