From de4704f81324626c717097704a1d0d146204061f Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 15 Aug 2022 15:47:16 +0200 Subject: [PATCH] Fixed: Output-Box-Boundaries were not met --- columbus/observables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/columbus/observables.py b/columbus/observables.py index 37b9c12..d502ae5 100644 --- a/columbus/observables.py +++ b/columbus/observables.py @@ -273,8 +273,8 @@ class CompositionalObservable(Observable): for i, obs in enumerate(self.observables): space = obs.get_observation_space() num += math.prod(space.shape) - low = min(low, float(space.low[0])) - high = max(high, float(space.high[0])) + low = min(low, float(space.low[0].item())) + high = max(high, float(space.high[0].item())) if False: if not i: low = space.low