Skip to content

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

Merged
essel-dev merged 1 commit intomasterfrom
refactor/replace-sunrise-sunset-with-astral
Dec 19, 2024
Merged

refactor(sun): Use Astral for sunset/sunrise#43
essel-dev merged 1 commit intomasterfrom
refactor/replace-sunrise-sunset-with-astral

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
6 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