Pysolar is a collection of Python libraries for simulating the irradiation of any point on earth by the sun. It includes code for extremely precise ephemeris calculations.
Deprecated since version 1.11.0: NumPy does not store timezone information. For backwards compatibility, datetime64 still parses timezone offsets, which it handles by converting to UTC. This behaviour is deprecated and will raise an error in the future
This patch converts datetimes to UTC and strips them of the timezone information before they're fed into numpy. All unit tests pass.
When running tests I saw repeated warnings from
numpy
(current version):The documentation at https://numpy.org/devdocs/reference/arrays.datetime.html#basic-datetimes warns:
This patch converts datetimes to UTC and strips them of the timezone information before they're fed into numpy. All unit tests pass.