Skip to content

Location demotion and PVSystem/LocalizedPVSystem/ModelChain addition #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 105 commits into from
Mar 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
c33d65d
change location default tz to utc
wholmgren Oct 28, 2015
d965f26
a mess of pvsystem and location stuff thats not working
wholmgren Oct 28, 2015
e1ad189
add SingleAxisTracker. more brainstorming
wholmgren Oct 28, 2015
b4cc4b7
fix import error
wholmgren Nov 10, 2015
e92acdd
add get_solarposition and get_clearsky
wholmgren Nov 10, 2015
27fd18e
add get_irradiance, simple doc strings, and a few kwargs
wholmgren Nov 10, 2015
82f28ba
make solarposition.spa_python work without Location
wholmgren Nov 10, 2015
cb22f24
add doc links and n_modules kwargs
wholmgren Nov 10, 2015
ca0c6ba
add altitude
wholmgren Nov 10, 2015
2524995
get_clearsky works
wholmgren Nov 10, 2015
c5d55d3
add v0.3.0 description
wholmgren Nov 10, 2015
697e8d2
remove Location inheritance from PVSystem
wholmgren Nov 13, 2015
ff0fb3b
remove Location inheritance from SAT
wholmgren Nov 13, 2015
e2a22cf
remove Location inheritance from SAT
wholmgren Nov 13, 2015
b9d41c8
fix klucher spelling
wholmgren Nov 11, 2015
b01dc5a
add klucher to total_irrad test list
wholmgren Nov 11, 2015
0c5cf68
fix bad paper link
wholmgren Nov 13, 2015
58bb3f5
add release date
wholmgren Nov 13, 2015
2465ae1
more slow progress
wholmgren Nov 15, 2015
ddc8816
addes classes. rename modules
wholmgren Nov 15, 2015
7e108ec
add LocalizedPVSystem. improve docs a little
wholmgren Nov 15, 2015
37a36da
add stub modelchain
wholmgren Nov 16, 2015
cddf91d
make package overview doc
wholmgren Nov 16, 2015
a381049
doc improvements
wholmgren Nov 16, 2015
ed6dc81
more doc stuff
wholmgren Nov 16, 2015
1a677d6
make aoi loss models have a consistent signature
wholmgren Nov 16, 2015
515d97a
flesh out modelchain a little
wholmgren Nov 16, 2015
3b7cd9a
remove location from solarposition module. enforce localized or utc t…
wholmgren Dec 21, 2015
b2d33ff
move iam args into PVSystems self.module_parameters
wholmgren Dec 21, 2015
dc75691
get test_pvsystem working with new ineichen sig. add dummy class tests
wholmgren Dec 21, 2015
10775e2
make test_clearsky work with new sig. fails due to changes in ephem m…
wholmgren Dec 21, 2015
66b3603
make altitude a kwarg
wholmgren Dec 21, 2015
ad7c990
make test_irradiance work with new ineichen sig
wholmgren Dec 21, 2015
358accd
make test_atmosphere work with new solpos sig
wholmgren Dec 21, 2015
34b925d
merge ci/appveyor/rtdconda into pvsystem
wholmgren Jan 18, 2016
6036106
fix cs test numbers due to new solpos
wholmgren Jan 18, 2016
2d14082
add has_ephem, modify tests for min pandas compatibility
wholmgren Jan 19, 2016
125cae2
further fixes to min req and transition to all nrel_numpy defaults
wholmgren Jan 19, 2016
04f477f
pull in some @MoonRaker changes to docs conf.py
wholmgren Jan 19, 2016
aa52f5f
fix pvlib/pvlib-python#105, add poa_diffuse
wholmgren Jan 19, 2016
7120082
standardize sapm_celltemp arg names. add dict/Series input
wholmgren Jan 19, 2016
a366714
get the procedural code example working in the docs
wholmgren Jan 19, 2016
c3073f0
change rtd python to 3.5 to use dict unpacking
wholmgren Jan 19, 2016
560bf84
add recommonmark
wholmgren Jan 19, 2016
96449ba
remove recommonmark. problem was in rtd admin config
wholmgren Jan 19, 2016
eae606c
back to 2.7...
wholmgren Jan 20, 2016
3ca9fdd
fix python 2.7 issues in doc example. make plotting work
wholmgren Jan 20, 2016
e5d77d5
minor markup correction
Jan 21, 2016
7d49393
add get_absoluteairmass
wholmgren Jan 30, 2016
c541abd
add get_aoi, dni/am calcs
wholmgren Jan 30, 2016
f46ef23
run_model finally works
wholmgren Jan 30, 2016
0d5bf83
update mc part of overview
wholmgren Jan 30, 2016
7a863fc
more doc improvements
wholmgren Jan 30, 2016
2bbc618
more doc improvements
wholmgren Jan 30, 2016
0f36234
create PVSystem.localize, allow LocalizedPVSystem pvsystem and locati…
wholmgren Jan 30, 2016
67744b0
update docs with LocalizedPVSystem improvements
wholmgren Jan 30, 2016
64a8fec
fix small typos
wholmgren Jan 30, 2016
176495c
fix small typos
wholmgren Jan 30, 2016
d030bb2
try short sphinx class refs
wholmgren Jan 30, 2016
d8b9968
trying to track down model differences
wholmgren Jan 30, 2016
55fa894
fix azimuth prob in docs
wholmgren Jan 30, 2016
9901538
maybe fixed discrepancies...
wholmgren Jan 30, 2016
a2fc762
add irradiance and weather kwargs to run_model
wholmgren Jan 30, 2016
eb8a803
merge pvlib/master into pvsystem
wholmgren Jan 31, 2016
fe5d021
clean up merge cruft
wholmgren Jan 31, 2016
3f96b89
convert get_airmassabsolute to get_airmass. add a bunch of failing st…
wholmgren Jan 31, 2016
63da5e6
fix silly syntax error
wholmgren Jan 31, 2016
9d8c374
fix pd import, default am model, ValueError text
wholmgren Jan 31, 2016
8aa8d53
editing docs
wholmgren Jan 31, 2016
862e0f0
editing docs
wholmgren Jan 31, 2016
aeb02e8
fix tmy2 metadata label problem
wholmgren Jan 31, 2016
28ed812
break AIRMASS_MODELS into *_ZENITH_MODELS
wholmgren Jan 31, 2016
cf1c1f3
small clean ups
wholmgren Jan 31, 2016
3391abf
add pressure, temperature to get_solarposition. make from_tmy work
wholmgren Jan 31, 2016
c547c3c
make location tests work
wholmgren Jan 31, 2016
bcb41ae
update whatsnew. might still be missing a few things
wholmgren Jan 31, 2016
ac6f710
remove sphinx markup from see also numpy doc section
wholmgren Jan 31, 2016
49c670d
implement modelchain tests
wholmgren Feb 1, 2016
df389aa
implement PVSystem tests
wholmgren Feb 1, 2016
4bfff5a
Merge remote-tracking branch 'wholmgren/pvsystem' into origin/pvsystem
Feb 1, 2016
5fc704e
Minor changes to the documentation
Feb 1, 2016
cd0da5b
highly experimental LocalizedSingleAxisTracker
wholmgren Feb 1, 2016
911ceff
typo
dacoex Feb 1, 2016
d41053c
contributors
dacoex Feb 1, 2016
01b5ff5
added python 3
dacoex Feb 3, 2016
50da307
Merge pull request #2 from dacoex/pvsystem
wholmgren Feb 7, 2016
96a6884
add api changes to whatsnew
wholmgren Feb 7, 2016
9e5ca7c
fix small doc issues
wholmgren Feb 8, 2016
feef0b5
add tests, fix attribute error
wholmgren Feb 10, 2016
9025cfc
pin to ipython 4.0.1
wholmgren Feb 10, 2016
96e7eb3
more tests for location
wholmgren Feb 10, 2016
4c3ad9b
lots of pvsystem tests
wholmgren Feb 11, 2016
ab6063f
solarposition.get_solarposition is smart about alt pressure kwargs
wholmgren Feb 20, 2016
ee32772
add basic_chain to modelchain
wholmgren Feb 20, 2016
99aea92
merge masters pep8 changes into this branch
wholmgren Feb 20, 2016
1494117
more pep8 and doc line length
wholmgren Feb 20, 2016
0002bd0
clean up modelchain documentation
wholmgren Mar 7, 2016
23d3727
remove unused mc stuff
wholmgren Mar 7, 2016
6448172
remove removed specificchain from classes doc
wholmgren Mar 7, 2016
67d45f8
add basic_chain to package_overview
wholmgren Mar 7, 2016
31e323d
add altitude and pressure kwargs to basic_chain
wholmgren Mar 7, 2016
a17379f
pin appveyors scipy to 0.16 to avoid yet another continuum package issue
wholmgren Mar 7, 2016
5280cb9
add test for orientation prop, altitude/pressure kwargs
wholmgren Mar 7, 2016
8c9c89d
correction, appveyor scipy=0.16.0. ugh
wholmgren Mar 7, 2016
ab69f9a
run_model now returns self
wholmgren Mar 7, 2016
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
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ install:
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""

# install xray and depenencies
- "conda install --yes --quiet pip numpy scipy pandas nose pytz ephem numba"
# install depenencies
- "conda install --yes --quiet pip numpy scipy=0.16.0 pandas nose pytz ephem numba"

# install pvlib
- "python setup.py install"

build: false

test_script:
- "nosetests -v pvlib"
- "nosetests -v pvlib"
2 changes: 0 additions & 2 deletions ci/requirements-py27-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: test_env
dependencies:
- python=2.7
- numpy==1.8.2
- scipy
- pandas==0.13.1
- nose
- pytz
- ephem
- pip:
- coveralls
4 changes: 2 additions & 2 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: pvlib
dependencies:
- python=2.7
- python=2.7
- numpy
- scipy
- pandas
- pytz
- ephem
- numba
- ipython
- ipython=4.0.1
- sphinx
- numpydoc
- matplotlib
Expand Down
Empty file.
55 changes: 55 additions & 0 deletions docs/sphinx/source/classes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.. _classes:

Classes
=======

pvlib-python provides a collection of classes
for users that prefer object-oriented programming.
These classes can help users keep track of data in a more organized way,
and can help to simplify the modeling process.
The classes do not add any functionality beyond the procedural code.
Most of the object methods are simple wrappers around the
corresponding procedural code.

Location
--------
.. autoclass:: pvlib.location.Location
:members:
:undoc-members:
:show-inheritance:

PVSystem
--------
.. autoclass:: pvlib.pvsystem.PVSystem
:members:
:undoc-members:
:show-inheritance:

ModelChain
----------
.. autoclass:: pvlib.modelchain.ModelChain
:members:
:undoc-members:
:show-inheritance:

LocalizedPVSystem
-----------------
.. autoclass:: pvlib.pvsystem.LocalizedPVSystem
:members:
:undoc-members:
:show-inheritance:

SingleAxisTracker
-----------------
.. autoclass:: pvlib.tracking.SingleAxisTracker
:members:
:undoc-members:
:show-inheritance:

LocalizedSingleAxisTracker
--------------------------
.. autoclass:: pvlib.tracking.LocalizedSingleAxisTracker
:members:
:undoc-members:
:show-inheritance:

13 changes: 12 additions & 1 deletion docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def __getattr__(cls, name):

# -- General configuration ------------------------------------------------

# turns off numpydoc autosummary warnings
numpydoc_show_class_members = False

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

Expand Down Expand Up @@ -127,7 +130,15 @@ def __getattr__(cls, name):

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
html_theme = 'default'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
5 changes: 3 additions & 2 deletions docs/sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ Contents
:maxdepth: 2

self
package_overview
whatsnew
modules
classes
comparison_pvlib_matlab
variables_style_rules
pvlib



Indices and tables
Expand Down
26 changes: 17 additions & 9 deletions docs/sphinx/source/pvlib.rst → docs/sphinx/source/modules.rst
Original file line number Diff line number Diff line change
@@ -1,71 +1,79 @@
Modules
=======

atmosphere module
atmosphere
-----------------

.. automodule:: pvlib.atmosphere
:members:
:undoc-members:
:show-inheritance:

clearsky module
clearsky
----------------

.. automodule:: pvlib.clearsky
:members:
:undoc-members:
:show-inheritance:

irradiance module
irradiance
-----------------

.. automodule:: pvlib.irradiance
:members:
:undoc-members:
:show-inheritance:

location module
location
---------------

.. automodule:: pvlib.location
:members:
:undoc-members:
:show-inheritance:

pvsystem module
modelchain
----------

.. automodule:: pvlib.modelchain
:members:
:undoc-members:
:show-inheritance:

pvsystem
---------------

.. automodule:: pvlib.pvsystem
:members:
:undoc-members:
:show-inheritance:

solarposition module
solarposition
--------------------

.. automodule:: pvlib.solarposition
:members:
:undoc-members:
:show-inheritance:

tmy module
tmy
--------------------

.. automodule:: pvlib.tmy
:members:
:undoc-members:
:show-inheritance:

tracking module
tracking
--------------------

.. automodule:: pvlib.tracking
:members:
:undoc-members:
:show-inheritance:

tools module
tools
--------------------

.. automodule:: pvlib.tools
Expand Down
Loading