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

noise: handle activities without coord #3495

Merged
merged 2 commits into from
Sep 26, 2024
Merged

noise: handle activities without coord #3495

merged 2 commits into from
Sep 26, 2024

Conversation

tschlenther
Copy link
Contributor

Some scenarios (like matsim-berlin) have some activities which do not have a coord. NoiseOfflineCalculation needs to account for that, otherwise we get an NPE.

Before this PR, activity coordinates were just dumped into a Set and then retrieved, without any check. Now we use PopulationUtils.decideOnCoordForActivity(activity, scenario) for the determination of activity coordinates...

@tschlenther tschlenther requested a review from rakow September 26, 2024 14:01
@tschlenther tschlenther merged commit 13dfc89 into master Sep 26, 2024
49 checks passed
@tschlenther tschlenther deleted the noiseAnalysis branch September 26, 2024 14:17
@kainagel kainagel mentioned this pull request Oct 16, 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.

1 participant