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

bugfix for XYToLink class #3106

Merged
merged 2 commits into from
Feb 13, 2024
Merged

bugfix for XYToLink class #3106

merged 2 commits into from
Feb 13, 2024

Conversation

simei94
Copy link
Contributor

@simei94 simei94 commented Feb 9, 2024

This class ALWAYS passes an empty ActivityFacilities Object (FacilitiesUtils.createActivityFacilities()) when calling the algo XY2Links. This may be correct for plans and activities, which do not have an assigned facilityId. However, when activities already were assigned facilityIds, XY2Links will produce an error. If activities already were assigned facilityIds, we can assume that the scenario has an existing Facilities file, which can then be passed when running XYToLinks.

@simei94 simei94 requested a review from rakow February 9, 2024 23:03
@rakow rakow enabled auto-merge (squash) February 13, 2024 10:39
@rakow rakow merged commit b087d76 into master Feb 13, 2024
48 checks passed
@rakow rakow deleted the xyToLink-bugfix branch February 13, 2024 10:52
nkuehnel pushed a commit to moia-oss/matsim-libs that referenced this pull request Feb 29, 2024
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