Skip to content

Fixes possible incorrect mapping between eai metric values and exposure points in trajectories#1297

Open
spjuhel wants to merge 1 commit into
developfrom
fix-trajectory_eai_metric
Open

Fixes possible incorrect mapping between eai metric values and exposure points in trajectories#1297
spjuhel wants to merge 1 commit into
developfrom
fix-trajectory_eai_metric

Conversation

@spjuhel

@spjuhel spjuhel commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes a bug in calc_eai_gdf (both for static and interpolated trajectories) where the exposure points coordinates are incorrectly mapped to the corresponding risk value when the exposure GeoDataFrame index is discontinuous.

The suggested fix directly uses the index, instead of creating it from a range.

PR Author Checklist

PR Reviewer Checklist

@peanutfun peanutfun left a comment

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.

Looks reasonable. But are there no tests for the results?

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