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

refactor(sun): Use Astral for sunset/sunrise #43

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

essel-dev
Copy link
Owner

This commit replaces the previous custom sunset and sunrise calculation logic with the astral package.

The astral package provides a more robust and accurate method for calculating these times, taking into account factors such as elevation and atmospheric refraction.

This change improves the overall accuracy of zmanim calculations, particularly for locations with significant elevation or unusual atmospheric conditions.

The following updates were made:

  • Removed custom sunset and sunrise calculation functions.
  • Installed the astral package.
  • Updated zmanim calculations to use astral's API for determining sunrise and sunset.
  • Updated unit tests to reflect the new calculation method.

This commit replaces the previous custom sunset and sunrise calculation logic with the `astral` package.

The `astral` package provides a more robust and accurate method for calculating these times, taking into account factors such as elevation and atmospheric refraction.

This change improves the overall accuracy of zmanim calculations, particularly for locations with significant elevation or unusual atmospheric conditions.

The following updates were made:

- Removed custom sunset and sunrise calculation functions.
- Installed the `astral` package.
- Updated `zmanim` calculations to use `astral`'s API for determining sunrise and sunset.
- Updated unit tests to reflect the new calculation method.
@essel-dev essel-dev merged commit 7e6a92d into master Dec 19, 2024
7 checks passed
@essel-dev essel-dev deleted the refactor/replace-sunrise-sunset-with-astral branch December 19, 2024 19:20
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