-
Notifications
You must be signed in to change notification settings - Fork 45
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
Use consists parameters to train simulation request #9660
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #9660 +/- ##
==========================================
- Coverage 81.53% 81.49% -0.05%
==========================================
Files 1059 1061 +2
Lines 104491 104609 +118
Branches 722 722
==========================================
+ Hits 85198 85247 +49
- Misses 19252 19321 +69
Partials 41 41
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f0f89c1
to
e5e6b33
Compare
e5e6b33
to
fbf7d12
Compare
bedcaf7
to
54c85fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have three functions (train_simulation_batch
, get_train_batch_simulation
and consist_train_simulation_batch
). Only two of them are required.
train_simulation_batch(&[TrainSchedule])
- Retrieve rolling stocks from
rolling_stock_name
field` - Convert this rolling stocks into
PhysicsConsistParameters
- Call
consist_train_simulation_batch
- Retrieve rolling stocks from
consist_train_simulation_batch(&[TrainScheduleWithPhysicsConsist])
- Check valkey cache
- Call the pathfinding
- Cal the simulation
- Cache the response
- Return the response
54c85fb
to
6339879
Compare
e76a0cc
to
463e084
Compare
9fa4b7f
to
4d28984
Compare
4d28984
to
c4265fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursory review. I'll come back to this when @flomonster's comments are addressed. Meanwhile, a few comments (mostly about excessive cloning 😄):
(The PR name and commit messages aren't really helpful to understand what's being fixed exactly, and it's not front:
commits 😅)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
We need to make sure that the function parameters are as logical and relevant as possible (avoid hacks, as this suits our workflow).
c4265fd
to
247fdfa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left some comments, needs a more thorough review still.
433f4ab
to
4e12429
Compare
bcb07db
to
db47b16
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the changes!
db47b16
to
53f9ea2
Compare
c6b4b58
to
6cc0bc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
e5bce37
to
1e9bddc
Compare
1e9bddc
to
a9cb8c8
Compare
a9cb8c8
to
9c252d9
Compare
Signed-off-by: Egor Berezovskiy <[email protected]>
Signed-off-by: maymanaf <[email protected]>
9c252d9
to
9fe84b8
Compare
Signed-off-by: Egor Berezovskiy <[email protected]>
fix #9544