Skip to content

Commit

Permalink
Fix description of date_ranges (#310)
Browse files Browse the repository at this point in the history
Update documentation in automate.py to correctly describe the date_ranges documentation
  • Loading branch information
jdossgollin authored and Spencer Hill committed Nov 13, 2018
1 parent e6287fa commit 90f4e13
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aospy/automate.py
Expand Up @@ -384,10 +384,16 @@ def submit_mult_calcs(calc_suite_specs, exec_options=None):
The region(s) over which any regional reductions will be performed.
If 'all', use all regions in the ``regions`` attribute of each
``Proj``.
date_ranges : 'default' or tuple of datetime.datetime objects
date_ranges : 'default' or a list of tuples
The range of dates (inclusive) over which to perform calculations.
If 'default', use the ``default_start_date`` and
``default_end_date`` attribute of each ``Run``.
``default_end_date`` attribute of each ``Run``. Else provide a
list of tuples, each containing a pair of start and end dates,
such as ``date_ranges=[(start, end)]`` where ``start`` and
``end`` are each ``datetime.datetime`` objects, partial
datetime strings (e.g. '0001'), ``np.datetime64`` objects, or
``cftime.datetime`` objects.
output_time_intervals : {'ann', season-string, month-integer}
The sub-annual time interval over which to aggregate.
Expand Down
5 changes: 5 additions & 0 deletions docs/whats-new.rst
Expand Up @@ -43,6 +43,11 @@ Breaking Changes
``BOUNDS_STR`` is a coordinate of ``time_weights`` (fixes :issue:`293`
and :issue:`299` via :pull:`309`). By `James Doss-Gollin
<https://github.com/jdossgollin>`_.
- Updates the documentation in the described ``calc_suite_specs``
argument to ``submit_mult_calcs`` in ``automate.py`` (fixes
:issue:`295` via :pull:`310`). By `James Doss-Gollin
<https://github.com/jdossgollin>`_.


Documentation
~~~~~~~~~~~~~
Expand Down

0 comments on commit 90f4e13

Please sign in to comment.