pingswept / pysolar

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.
http://pysolar.org
GNU General Public License v3.0
372 stars 125 forks source link

Make get_radiation_direct handle NumPy arrays #114

Closed bfrobin446 closed 4 years ago

bfrobin446 commented 4 years ago

As another increment toward issue #72, I got get_radiation_direct to work with NumPy arrays as inputs.

The existing tests pass on the Python interpreter I was using (3.7.0), and I added a new test to exercise the new functionality.