Fix dist_approx with "geosphere" method and close points by tovogt · Pull Request #792 · CLIMADA-project/climada_python

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@tovogt

Copy link

Collaborator

@tovogt tovogt commented

Oct 18, 2023

edited

Loading

Changes proposed in this PR:

  • Fix the dist_approx util function when used with method="geosphere" and log=True.
  • This only affects very small input values, i.e. computing the distance between points that are very close. I added a unit test for that case. I also added a test case where points are identical because I think that this is a kind of sanity check that should be included.

PR Author Checklist

PR Reviewer Checklist

@tovogt tovogt changed the title Feature/fix dist approx geosphere Fix dist_approx with "geosphere" method and close points

Oct 18, 2023

@chahank chahank requested a review from viggowat

October 18, 2023 09:38

@emanuel-schmid

Copy link

Collaborator

Looks good to me. Obviously fixes a bug.

tovogt reacted with thumbs up emoji

@emanuel-schmid emanuel-schmid merged commit f362c2b into develop

Oct 30, 2023

@emanuel-schmid emanuel-schmid deleted the feature/fix_dist_approx_geosphere branch

October 30, 2023 07:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@emanuel-schmid emanuel-schmid emanuel-schmid left review comments

@viggowat viggowat Awaiting requested review from viggowat

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@tovogt @emanuel-schmid