pvlib / twoaxistracking

twoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading.
http://twoaxistracking.rtfd.io/
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Fix twoaxistracking.__version__ #45

Closed AdamRJensen closed 1 year ago

AdamRJensen commented 1 year ago

Currently, we aren't setting the version attribute in init.py, which means twoaxistracking.version raises AttributeError. This PR fixes that.

Issue and fix are similar to https://github.com/pvlib/pvanalytics/pull/181

AdamRJensen commented 1 year ago

I sprinkled in some # pragma: no cover in the __init__.py as otherwise there was not 100% test coverage and pytest was failing as it currently requires 100% test coverage.