Skip to content

Commit

Permalink
Fix doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Nov 14, 2024
1 parent a640d5a commit 4b8fde1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ams/routines/dcopf.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def __init__(self, system, config):
def solve(self, **kwargs):
"""
Solve the routine optimization model.
*args and **kwargs go to `self.om.prob.solve()` (`cvxpy.Problem.solve()`).
args and kwargs go to `self.om.prob.solve()` (`cvxpy.Problem.solve()`).
"""
return self.om.prob.solve(**kwargs)

Expand Down
6 changes: 4 additions & 2 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Routines
:template: autosummary/module_toctree.rst

ams.routines.routine
ams.routines.dcopf
ams.routines.pflow


Optimization
Expand All @@ -56,7 +58,7 @@ Optimization
:caption: Optimization
:template: autosummary/module_toctree.rst

ams.opt.omodel
ams.opt


I/O
Expand All @@ -82,7 +84,7 @@ Interoperability
:caption: Interoperability
:template: autosummary/module_toctree.rst

ams.interop
ams.interface


Others
Expand Down
4 changes: 2 additions & 2 deletions docs/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ Note the dot at the end. Pip will take care of the rest.
.. note::

To install extra support packages, one can append ``[NAME_OF_EXTRA]`` to
``pip install -e .``. For example, ``pip install -e .[interop]`` will
install packages to support interoperability when installing AMS in the
``pip install -e .``. For example, ``pip install -e .[doc]`` will
install packages to support documentation when installing AMS in the
development, editable mode.

Updating AMS
Expand Down
15 changes: 4 additions & 11 deletions docs/source/modeling/routine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ Further, to facilitate the routine definition, AMS developed a class
.. autoclass:: ams.core.param.RParam
:noindex:

.. currentmodule:: ams.routines
.. autosummary::
:recursive:
:toctree: _generated

RoutineBase

Numerical Optimization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -87,7 +80,7 @@ Interoperation with ANDES
-----------------------------------

The interoperation with dynamic simulator invovles both file conversion and data exchange.
In AMS, the built-in interface with ANDES is implemented in :py:mod:`ams.interop.andes`.
In AMS, the built-in interface with ANDES is implemented in :py:mod:`ams.interface`.


File Format Converter
Expand All @@ -98,7 +91,7 @@ where it defines grid topology and power flow.
An AMS case can be converted to an ANDES case, with the option to supply additional dynamic
data.

.. autofunction:: ams.interop.andes.to_andes
.. autofunction:: ams.interface.to_andes
:noindex:


Expand All @@ -112,10 +105,10 @@ The maping relationship for a specific routine is defined in the routine class a
``map2``.
Additionally, a link table for the ANDES case is used for the controller connections.

Module :py:mod:`ams.interop.andes.Dynamic`, contains the necessary functions and classes for
Module :py:mod:`ams.interface.Dynamic`, contains the necessary functions and classes for
file conversion and data exchange.

.. autoclass:: ams.interop.andes.Dynamic
.. autoclass:: ams.interface.Dynamic
:noindex:
:members: send, receive

Expand Down

0 comments on commit 4b8fde1

Please sign in to comment.