Skip to content

Commit

Permalink
update what's new
Browse files Browse the repository at this point in the history
  • Loading branch information
rogersamso authored and enekomartinmartinez committed Aug 1, 2023
1 parent 7fb4948 commit 69a6d40
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/advanced_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Running models one (or more) step(s) at a time
Coupling different models requires the exchange of certain variables between them. This is only possible if a stepping mechanism is available, which allows for running any number of steps with certain boundary conditions that evolve along time.
In this section, we show how the teacup model may be run in a for loop using the :py:meth:`.step` function (rather than the :py:meth:`.run` function) and update the value of a model variable before each step::

from pysd.py_backend.output import ModelOutput
# instantiate ModelOutput object
output = ModelOutput()

Expand Down
30 changes: 30 additions & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
What's New
==========
v3.11.0 (2023/07)
-----------------
New Features
~~~~~~~~~~~~
- Add the possibility to run a model one or several steps at a time, updating model variables in the process. (`@rogersamso <https://github.com/rogersamso>`_)

Breaking changes
~~~~~~~~~~~~~~~~

Deprecations
~~~~~~~~~~~~

Bug fixes
~~~~~~~~~

Documentation
~~~~~~~~~~~~~
- Add the `Running models one (or more) step(s) at a time` section in :doc:`advanced_usage`. (`@rogersamso <https://github.com/rogersamso>`_)

Performance
~~~~~~~~~~~

Internal Changes
~~~~~~~~~~~~~~~~
- Modify signature of the :py:class:`pysd.py_backend.output.ModelOutput` class. It now only accepts the path of the results file (`@rogersamso <https://github.com/rogersamso>`_)
- Add the :py:meth:`pysd.py_backend.output.ModelOutput.collect` method to the :py:class:`pysd.py_backend.output.ModelOutput` class. (`@rogersamso <https://github.com/rogersamso>`_)
- Add the :py:meth:`pysd.py_backend.model.Model.set_stepper` and :py:meth:`pysd.py_backend.model.Model.step` methods to the :py:class:`pysd.py_backend.model.Model` class. (`@rogersamso <https://github.com/rogersamso>`_)
- Add several internal methods to the :py:class:`pysd.py_backend.model.Model` class, to avoid code repetition. (`@rogersamso <https://github.com/rogersamso>`_)


v3.10.0 (2023/04/28)
--------------------
New Features
Expand Down
2 changes: 1 addition & 1 deletion pysd/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.10.0"
__version__ = "3.11.0"

0 comments on commit 69a6d40

Please sign in to comment.