Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network enhancements #46

Merged
merged 59 commits into from
Mar 21, 2024
Merged

Network enhancements #46

merged 59 commits into from
Mar 21, 2024

Conversation

calbaker
Copy link
Collaborator

@calbaker calbaker commented Feb 28, 2024

  • creates Link.speed_set that is a train-type-neutral speed limit vector that, if provided, overrides the map of train types and corresponding speed limits
  • clarifies the causal relationship between train type and values in SpeedSets
  • does not introduce any apparent slow down

StevenGotGame and others added 30 commits January 31, 2024 13:23
formatting stuff
removed boiler plate stuff that could be simplified with defaults
calbaker and others added 26 commits March 11, 2024 17:09
… instead.

This would allow for having one struct with `Vec<SpeedSet>` and `train_type` as field ind `SpeedSet` and another struct with `HashMap<TrainType, SpeedSet>` to make the causal relationship more obvious.
TODO: update speed trace to be 1 Hz
- figure out if hashing is significant CPU cost
- Make a train-type-agnostic `SpeedSet`
updated pyi file
sim_manager_demo.py takes about 33-55 s, depending on CPU load
@calbaker calbaker marked this pull request as ready for review March 15, 2024 21:26
@calbaker calbaker merged commit 8ec411b into main Mar 21, 2024
4 checks passed
@calbaker calbaker deleted the network-enhancements branch March 21, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants