Skip to content

Commit

Permalink
fix dt checking
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoruXue committed Feb 12, 2025
1 parent f770410 commit 83b3c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dial_mpc/envs/base_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class BaseEnv(PipelineEnv):
def __init__(self, config: BaseEnvConfig):
assert config.dt % config.timestep == 0, "timestep must be divisible by dt"
assert jnp.allclose(config.dt % config.timestep, 0.0), "timestep must be divisible by dt"
self._config = config
n_frames = int(config.dt / config.timestep)
sys = self.make_system(config)
Expand Down

0 comments on commit 83b3c61

Please sign in to comment.