Comparison of float with 0.0 in rail_env
Hi, in line 422 of rail_env.py, we have if agent.speed_data['position_fraction'] == 0.0: Comparing two floats for equality is prone to fail in many situations See https://stackoverflow.com/questions/5595425/what-is-the-best-way-to-compare-floats-for-almost-equality-in-python
Proposed solution: replace with math.isclose