OP#9542: Flow distance, travel time, and avg speed in road user assignments CSV#819
Open
Sebastian-Gerken wants to merge 3 commits into
Open
OP#9542: Flow distance, travel time, and avg speed in road user assignments CSV#819Sebastian-Gerken wants to merge 3 commits into
Sebastian-Gerken wants to merge 3 commits into
Conversation
Add flow_distance_m from Flow.distance, travel_time_s from interpolated event times, and avg_speed_mps when distance and positive duration allow. Extend tests and align CSV round-trip expectations with pandas NaN handling. Made-with: Cursor
- Assert zero flow distance yields zero avg speed with positive duration - CSV round-trip: blank cells for flow_distance_m and avg_speed_mps when distance is unset; verify via csv.reader and pandas isna Made-with: Cursor
- Testvideo Süd→Nord flow: 32.5 m in .otconfig and .otflow (matches export) - sections_created Test-Flow: 42.0 m (was null) - gitignore tests/data_tmp/ for CLI/pytest scratch output Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OP#9542 · #9542
Beschreibung des Anwendungsfalls
Backend
flow_distance_m,travel_time_s,avg_speed_mps.RoadUserAssignmentBuilder/ Hilfsfunktioncompute_road_user_assignment_flow_metrics:travel_time_sausend.interpolated_occurrence - start.interpolated_occurrence;avg_speed_mps = flow_distance_m / travel_time_snur wennFlow.distance is not Noneundtravel_time_s > 0(bei Distanz 0 und positiver Zeit: 0 m/s).Tests / Testdaten
Testvideo-.otconfig/.otflow,sections_created_test_file.otconfig) mit nicht-trivialen Flow-Distanzen für manuelle/integrative Prüfung;tests/data_tmp/in.gitignore.Frontend
tests/data/Testvideo_*.otconfiggeprüft (Spalten + plausible Werte).Technische Fragen
OP#9542 · #9542