rl-institut / simbev

MIT License
10 stars 4 forks source link

Exports don't work properly when start and end date are the same #83

Open mosc5 opened 2 years ago

mosc5 commented 2 years ago

This error happened on a test run with same start and end date: File "/home/moritz/github/simbev/simbev/simbev_class.py", line 166, in run car_array = car.export(region_directory, self) File "/home/moritz/github/simbev/simbev/car.py", line 324, in export post_event_len = activity.at[activity.index[1], "event_start"] File "/home/moritz/github/simbev/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 5039, in __getitem__ return getitem(key) IndexError: index 1 is out of bounds for axis 0 with size 1

Additionally, the integrated plots don't use all available data, but cut off the last day

mosc5 commented 2 years ago

The error occurs, when a vehicle doesnt do any trips and has an empty output