You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could use mergeAdjacent for a quick fix, but I think it would be more efficient/readable to group bounds in putMany.
We may also want to split the logic in two parts: e.g. the first part handles groups (removes empty intervals) and the second part merges adjacent intervals with the same value.
What happened?
See tests in /~https://github.com/osrd-project/osrd/compare/peb/core/fix_distance_range_put_many
The merge when extremities and values are the same is not done by
putMany()
, leading to a different behavior than expected, and thanput()
.What did you expect to happen?
Have
putMany()
merging consecutive ranges with identical values.How can we reproduce it (as minimally and precisely as possible)?
Use tests available in
peb/core/fix_distance_range_put_many
branchWhat operating system, browser and environment are you using?
OSRD version (top right corner
Account
button >Informations
)dfcbaad
The text was updated successfully, but these errors were encountered: