Fixed: Output-Box-Boundaries were not met

This commit is contained in:
Dominik Moritz Roth 2022-08-15 15:47:16 +02:00
parent 7360318866
commit de4704f813

View File

@ -273,8 +273,8 @@ class CompositionalObservable(Observable):
for i, obs in enumerate(self.observables): for i, obs in enumerate(self.observables):
space = obs.get_observation_space() space = obs.get_observation_space()
num += math.prod(space.shape) num += math.prod(space.shape)
low = min(low, float(space.low[0])) low = min(low, float(space.low[0].item()))
high = max(high, float(space.high[0])) high = max(high, float(space.high[0].item()))
if False: if False:
if not i: if not i:
low = space.low low = space.low