Skip to content

Commit

Permalink
if smth is False -> if not smth
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <alexhg15@gmail.com>
  • Loading branch information
AlexandraVolokhova and alexhernandezgarcia authored Nov 29, 2023
1 parent f7e5ec3 commit 08ee25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gflownet/envs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def reward(self, state=None, done=None, do_non_terminating=False):
"""
state = self._get_state(state)
done = self._get_done(done)
if done is False and do_non_terminating is False:
if not done and not do_non_terminating:
return tfloat(0.0, float_type=self.float, device=self.device)
return self.proxy2reward(self.proxy(self.state2proxy(state))[0])

Expand Down

0 comments on commit 08ee25b

Please sign in to comment.