Skip to content

Commit

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


Expand Down
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, len(pop)), np.repeat(None, len(pop))
pop, np.repeat(0, len(pop)), None)
)


Expand Down

0 comments on commit 4d8c5cd

Please sign in to comment.