Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The user can then plot the PV array geometry at any given time of the simulation

.. code:: python

# Plot pvarray shapely geometries
# Plot pvarray geometries
f, ax = plt.subplots(figsize=(10, 5))
pvarray.plot_at_idx(1, ax)
plt.show()
Expand Down Expand Up @@ -181,7 +181,6 @@ Requirements are included in the ``requirements.txt`` file of the package. Here

* `numpy <https://pypi.python.org/pypi/numpy>`_
* `pvlib-python <https://pypi.python.org/pypi/pvlib>`_
* `shapely <https://pypi.python.org/pypi/Shapely>`_


Citing pvfactors
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/developer/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Developer API
=============

This is the class and function reference of pvfactors.
For clarity and simplicity, all inherited methods and attributes have been removed from the class descriptions as there were often too many irrelevant ones coming from base packages like shapely.
For clarity and simplicity, all inherited methods and attributes have been removed from the class descriptions as there were often too many irrelevant ones coming from base packages.

.. include:: geometry.rst

Expand Down
12 changes: 0 additions & 12 deletions docs/sphinx/installation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ The easiest way to install ``pvfactors`` is using pip_:

$ pip install pvfactors

However, installing ``shapely`` from PyPI may not install all the necessary binary dependencies.
If you run into an error like ``OSError: [WinError 126] The specified module could not be found``,
try installing conda from conda-forge with:

.. code-block:: shell

$ conda install -c conda-forge shapely

Windows users may also be able to resolve the issue by installing wheels from `Christoph Gohlke`_.

.. _Christoph Gohlke: https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely


pvlib implementation
--------------------
Expand Down
17 changes: 0 additions & 17 deletions pvfactors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,5 @@
import logging
logging.basicConfig()

try:
from shapely.geos import lgeos # noqa: F401
except OSError as err:
# https://github.com/SunPower/pvfactors/issues/109
msg = (
"pvfactors encountered an error when importing the shapely package. "
"This often happens when a binary dependency is missing because "
"shapely was installed from PyPI using pip. Try reinstalling shapely "
"from another source like conda-forge with "
"`conda install -c conda-forge shapely`, or alternatively from "
"Christoph Gohlke's website if you're on Windows: "
"https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely"
)
err.strerror += "; " + msg
raise err


class PVFactorsError(Exception):
pass
Loading