Skip to content

Commit

Permalink
np.inf discontinued
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Montealegre-Mora committed Jul 5, 2024
1 parent fca8c5b commit 1d4e794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rl4caribou/envs/caribou_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def state_units(self, pop):
def population_units(self):
pop = (self.state + 1) * self.bound / 2
return np.clip(
pop, np.repeat(0, pop.__len__()), np.repeat(np.Inf, pop.__len__())
pop, np.repeat(0, len(pop)), np.repeat(None, len(pop))
)


Expand Down

0 comments on commit 1d4e794

Please sign in to comment.