Skip to content

Commit

Permalink
Envs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsSR committed Apr 11, 2024
1 parent 19eb909 commit ec672ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/fastfiz_env/envs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@

from .base_fastfiz import BaseFastFiz
from .base_rl_fastfiz import BaseRLFastFiz
from .event_fastfiz import EventFastFiz
from .velocity_fastfiz import VelocityFastFiz
from .simple_fastfiz import SimpleFastFiz
from .testing_fastfiz import TestingFastFiz

__all__ = [
"BaseFastFiz",
"BaseRLFastFiz",
"EventFastFiz",
"VelocityFastFiz",
"SimpleFastFiz",
"TestingFastFiz",
Expand Down
2 changes: 1 addition & 1 deletion src/fastfiz_env/envs/simple_fastfiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def step(self, action: np.ndarray) -> tuple[np.ndarray, float, bool, bool, dict]
prev_table_state = ff.TableState(self.table_state)
shot_params = ff.ShotParams(*action)

if not self._possible_shot(shot_params):
if self._possible_shot(shot_params):
self.table_state.executeShot(shot_params)

observation = self._get_observation()
Expand Down

0 comments on commit ec672ce

Please sign in to comment.