Skip to content

Commit

Permalink
minor docstrings fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkjames committed May 31, 2024
1 parent 5d24ec6 commit 0899ad5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc_build/core/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ SsaRes (pyleoclim.SsaRes)
:members:

Resolution (pyleoclim.Resolution)
"""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""

.. autoclass:: pyleoclim.core.resolutions.Resolution
:members:

MultipleResolution (pyleoclim.MultipleResolution)
"""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""

.. autoclass:: pyleoclim.core.resolutions.MultipleResolution
:members:
4 changes: 2 additions & 2 deletions pyleoclim/core/ensembleseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,8 @@ def to_array(self, axis='value', labels=True):
headers: list
A list of corresponding labels for each columm
Example
-------
Examples
--------
.. jupyter-execute::
Expand Down
13 changes: 8 additions & 5 deletions pyleoclim/core/resolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,13 @@ class MultipleResolution:
resolution_list : list
List of resolution objects.
time_unit : str
The unit of time for the resolution.
See Also
--------
Resolution : The base class from which MultipleResolution is derived.
'''
Expand Down Expand Up @@ -554,13 +555,14 @@ def summary_plot(self,figsize=(10,8),xlabel=None,ylabel=None,legend=False,ax=Non
Examples
--------
.. jupyter-execute::
import pyleoclim as pyleo
co2ts = pyleo.utils.load_dataset('AACO2')
edc = pyleo.utils.load_dataset('EDC-dD')
ms = edc & co2ts # create MS object
ms_resolution = ms.resolution()
ms_resolution.plot()
ms_resolution = ms.resolution(statistic=None)
ms_resolution.summary_plot()
"""

boxplot_kwargs = {} if boxplot_kwargs is None else boxplot_kwargs.copy()
Expand Down Expand Up @@ -638,13 +640,14 @@ def describe(self):
--------
..jupyter-execute::
import pyleoclim as pyleo
co2ts = pyleo.utils.load_dataset('AACO2')
edc = pyleo.utils.load_dataset('EDC-dD')
ms = edc & co2ts # create MS object
ms_resolution = ms.resolution()
ms_resolution.plot()
ms_resolution = ms.resolution(statistic=None)
ms_resolution.describe()
'''

Expand Down

0 comments on commit 0899ad5

Please sign in to comment.