Skip to content

Commit

Permalink
np.inf discontinued (pt3) (#12)
Browse files Browse the repository at this point in the history
* np.inf discontinued (pt3)

* typo

---------

Co-authored-by: Felipe Montealegre-Mora <[email protected]>
  • Loading branch information
felimomo and Felipe Montealegre-Mora committed Jul 5, 2024
1 parent d8be324 commit fb03276
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 @@ -274,7 +274,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 fb03276

Please sign in to comment.