Skip to content

Fix direct transfer analyzer#4767

Merged
hannesj merged 2 commits into
opentripplanner:dev-2.xfrom
entur:otp2_fix_transfer_analyzer
Jan 26, 2023
Merged

Fix direct transfer analyzer#4767
hannesj merged 2 commits into
opentripplanner:dev-2.xfrom
entur:otp2_fix_transfer_analyzer

Conversation

@hannesj

@hannesj hannesj commented Jan 26, 2023

Copy link
Copy Markdown
Contributor

Summary

Direct transfer analyzer crashed if it couldn't link a stop to the street network. Fix that and add a couple of priorities to the data import issues

@hannesj hannesj added !Bug Apply to issues describing a bug and PRs witch fixes it. !Improvement A functional improvement or micro feature labels Jan 26, 2023
@hannesj hannesj added this to the 2.3 milestone Jan 26, 2023
@hannesj
hannesj requested a review from a team as a code owner January 26, 2023 12:53
@codecov

codecov Bot commented Jan 26, 2023

Copy link
Copy Markdown

Codecov Report

Base: 61.86% // Head: 61.91% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (1257344) compared to base (d09124f).
Patch coverage: 51.61% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #4767      +/-   ##
=============================================
+ Coverage      61.86%   61.91%   +0.05%     
- Complexity     12770    12820      +50     
=============================================
  Files           1614     1618       +4     
  Lines          64484    64897     +413     
  Branches        7044     7067      +23     
=============================================
+ Hits           39891    40179     +288     
- Misses         22325    22444     +119     
- Partials        2268     2274       +6     
Impacted Files Coverage Δ
...r/ext/transferanalyzer/DirectTransferAnalyzer.java 0.00% <0.00%> (ø)
...analyzer/annotations/TransferCouldNotBeRouted.java 0.00% <0.00%> (ø)
...er/annotations/TransferRoutingDistanceTooLong.java 0.00% <0.00%> (ø)
...anner/graph_builder/issue/api/DataImportIssue.java 20.00% <ø> (ø)
...tripplanner/graph_builder/issues/HopSpeedSlow.java 66.66% <0.00%> (ø)
...pplanner/graph_builder/issues/HopZeroDistance.java 71.42% <0.00%> (-11.91%) ⬇️
...ntripplanner/graph_builder/issues/HopZeroTime.java 71.42% <0.00%> (-11.91%) ⬇️
...nner/graph_builder/issues/InterliningTeleport.java 71.42% <0.00%> (ø)
...ripplanner/graph_builder/issues/RepeatedStops.java 66.66% <0.00%> (-13.34%) ⬇️
...pplanner/updater/trip/TimetableSnapshotSource.java 67.65% <0.00%> (+1.78%) ⬆️
... and 19 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Override
public int getPriority() {
return 10000000 - distance;
return -distance;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't have those with the highest distance also have the highest priority?

@hannesj
hannesj requested a review from Bartosz-Kruba January 26, 2023 14:33
@hannesj
hannesj merged commit 2189630 into opentripplanner:dev-2.x Jan 26, 2023
@hannesj
hannesj deleted the otp2_fix_transfer_analyzer branch January 26, 2023 19:21
t2gran pushed a commit that referenced this pull request Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it. !Improvement A functional improvement or micro feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants