rl-institut / SimBA

GNU Affero General Public License v3.0
2 stars 1 forks source link

step assertion error in schedule #103

Closed PaulScheerRLI closed 1 year ago

PaulScheerRLI commented 1 year ago

https://github.com/rl-institut/eBus-Toolbox/blob/0dc711b88975bc08ead506e7c451a34f5be57175/ebus_toolbox/schedule.py#L186

is not consistent with

https://github.com/rl-institut/spice_ev/blob/115af1ffce6b3898d716e939a211d9bdebd1e1de/spice_ev/scenario.py#L253-L254

Therefor the line has to be changed to assert scenario.step_i == scenario.n_intervals