mpm-tu-berlin / eflips-depot

Depot Simulation for eFLIPS
GNU Affero General Public License v3.0
4 stars 0 forks source link

eBus2030+ IndexError when simulating #124

Open stefansc1 opened 2 months ago

stefansc1 commented 2 months ago

I get an error when running eFLIPS from the eBus2030+ page. I created a minimal example trips.csv for the SimBA schedule. All other options remain unchanged. The error is in eflips/depot/api/__init__.py, line 857, in function add_evaluation_to_database: earliest_time = sorted(dict_of_events.keys())[0]. This results in an IndexError: list index out of range.

shuyao-guo commented 2 months ago

Will be handled in the next version of eflips-depot. In order to assure if this bug is fixed, would you please provide a database dump with the data that triggers this?

shuyao-guo commented 2 months ago

Or try https://github.com/mpm-tu-berlin/eflips-depot/pull/117. Let me know if the bug is not fixed in that branch

stefansc1 commented 2 months ago

It seems cumbersome to re-install eflips with a different branch. Trying to update django-simba's poetry file to use that branch fails because of incompatible eflips-model versions. Also, I'm really reluctant to nuke my database for a minimal database dump. I would suggest you notify me when #117 is merged, so I can test again. The error is not cropping up often enough to be a hindrance, until then.

shuyao-guo commented 2 months ago

117 is merged. In order to use that, https://github.com/rl-institut/django-simba/pull/124 also needs to be merged.