From 4fc07fe32b22b68f0233d2a87c749f1857e4a06a Mon Sep 17 00:00:00 2001 From: Tom Schierenbeck Date: Mon, 13 Nov 2023 10:56:49 +0100 Subject: [PATCH] Updated to new random events version --- requirements.txt | 2 +- src/probabilistic_model/__init__.py | 2 +- src/probabilistic_model/probabilistic_circuit/distributions.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 546030f..e55b7bf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -random-events>=1.1.5 +random-events>=1.2.5 anytree>=2.9.0 portion>=2.4.1 \ No newline at end of file diff --git a/src/probabilistic_model/__init__.py b/src/probabilistic_model/__init__.py index b7e1990..64c7d51 100644 --- a/src/probabilistic_model/__init__.py +++ b/src/probabilistic_model/__init__.py @@ -1 +1 @@ -__version__ = "1.2.5" +__version__ = "1.2.6" diff --git a/src/probabilistic_model/probabilistic_circuit/distributions.py b/src/probabilistic_model/probabilistic_circuit/distributions.py index b476e95..fc82128 100644 --- a/src/probabilistic_model/probabilistic_circuit/distributions.py +++ b/src/probabilistic_model/probabilistic_circuit/distributions.py @@ -60,7 +60,7 @@ def maximize_expressiveness(self) -> Self: return copy.copy(self) def to_json(self) -> Dict[str, Any]: - return {**super().to_json(), "variable": json.loads(self.variable.model_dump_json())} + return {**super().to_json(), "variable": self.variable.to_json()} class ContinuousDistribution(UnivariateDistribution):