Open calbaker opened 2 months ago
I believe I found the culprit:
Generated in e02ccf0ce122875f8517f87b0f5f71fef15c100a
@SWRIganderson , e87bdc8d is where I generated the plots convince myself that I've fixed the problem in the set_speed_train_sim_demo.py and speed_limit_train_sim_demo.py files.
Could you run these in the context of this branch (after rebuilding the code) and let me know if they make sense?
@SWRIganderson , seeing this line that Geordie wrote was my inspiration for the change. Also, I think we could prove that the two simulations produce identical results by making a variant for the traction-dependent component of the aux load so that this can be turned off during regen and/or dynamic braking, which should remove the only difference I know of.
@SWRIganderson , this PR sure could use some love
To verify that the
loco_con
and other objects are the same between the two simulations, you can:pip install deepdiff
loco_con_slts = loco_con
and this will show that they're equal or specifically what's not equal if they're not. I have not checked everything exhaustively yet but am working on it.
You can now run debugging plots to produce:
This shows that the train resistance is different between the ssts and slts. I'm working on tracking this down.