Skip to content

Commit

Permalink
3 spaces for directive options
Browse files Browse the repository at this point in the history
  • Loading branch information
wholmgren committed Sep 9, 2018
1 parent 34da738 commit 6ff6b8f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/sphinx/source/modelchain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ able to automatically determine its set of models, so the ModelChain
will throw an error when we try to create it.

.. ipython:: python
:okexcept:
:okexcept:
ModelChain(poorly_specified_system, location)
Expand Down
12 changes: 5 additions & 7 deletions docs/sphinx/source/pvsystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PVSystem
========

.. ipython:: python
:suppress:
:suppress:
import pandas as pd
from pvlib import pvsystem
Expand Down Expand Up @@ -43,13 +43,11 @@ Intrinsic data is stored in object attributes. For example, the data
that describes a PV system's module parameters is stored in
`PVSystem.module_parameters`.

.. ipython::

In [1]: module_parameters = {'pdc0': 10, 'gamma_pdc': -0.004}

In [1]: system = pvsystem.PVSystem(module_parameters=module_parameters)
.. ipython:: python
In [1]: print(system.module_parameters)
module_parameters = {'pdc0': 10, 'gamma_pdc': -0.004}
system = pvsystem.PVSystem(module_parameters=module_parameters)
print(system.module_parameters)
Extrinsic data is passed to a PVSystem as method arguments. For example,
the :py:meth:`~pvlib.pvsystem.PVSystem.pvwatts_dc` method accepts extrinsic
Expand Down
14 changes: 6 additions & 8 deletions docs/sphinx/source/timetimezones.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ using the corresponding pandas functionality where possible.
First, we'll import the libraries that we'll use to explore the basic
time and time zone functionality in python and pvlib.

.. ipython::

In [1]: import datetime

In [1]: import pandas as pd
.. ipython:: python
In [1]: import pytz
import datetime
import pandas as pd
import pytz
Finding a time zone
Expand Down Expand Up @@ -97,7 +95,7 @@ It does not make sense to convert a time stamp that has not been
localized, and pandas will raise an exception if you try to do so.

.. ipython:: python
:okexcept:
:okexcept:
midnight = pd.Timestamp('2015-1-1 00:00')
midnight.tz_convert('UTC')
Expand Down Expand Up @@ -239,7 +237,7 @@ passed to ``Timestamp``.
You cannot localize a native Python date object.

.. ipython:: python
:okexcept:
:okexcept:
# fail
pytz.timezone('US/Mountain').localize(naive_python_date)
Expand Down

0 comments on commit 6ff6b8f

Please sign in to comment.