Skip to content

Commit c265498

Browse files
committed
Update autodoc; zero warnings
1 parent 369398a commit c265498

File tree

8 files changed

+16
-19
lines changed

8 files changed

+16
-19
lines changed

cape/cfdx/casecntl.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4777,6 +4777,7 @@ def check_alt_exit(self, j: Optional[int] = None) -> bool:
47774777
*runner*: :class:`CaseRunner`
47784778
Controller to run one case of solver
47794779
*j*: {``None``} | :class:`int`
4780+
Phase index
47804781
:Outputs:
47814782
*q*: :class:`bool`
47824783
``True`` if no listed files have been modified recently
@@ -6007,7 +6008,7 @@ def clean(self, test: bool = False):
60076008
*test*: ``True`` | {``False``}
60086009
Option to log all actions but not actually copy/delete
60096010
:Versions:
6010-
* 2024-09-18 ``@ddalle`: v1.0
6011+
* 2024-09-18 ``@ddalle``: v1.0
60116012
"""
60126013
# Get archivist
60136014
a = self.get_archivist()
@@ -6027,7 +6028,7 @@ def archive(self, test: bool = False):
60276028
*test*: ``True`` | {``False``}
60286029
Option to log all actions but not actually copy/delete
60296030
:Versions:
6030-
* 2024-09-18 ``@ddalle`: v1.0
6031+
* 2024-09-18 ``@ddalle``: v1.0
60316032
"""
60326033
# Get archivist
60336034
a = self.get_archivist()
@@ -6047,7 +6048,7 @@ def skeleton(self, test: bool = False):
60476048
*test*: ``True`` | {``False``}
60486049
Option to log all actions but not actually copy/delete
60496050
:Versions:
6050-
* 2024-09-18 ``@ddalle`: v1.0
6051+
* 2024-09-18 ``@ddalle``: v1.0
60516052
"""
60526053
# Get archivist
60536054
a = self.get_archivist()
@@ -6066,7 +6067,7 @@ def unarchive(self, test: bool = False):
60666067
*test*: ``True`` | {``False``}
60676068
Option to log all actions but not actually copy/delete
60686069
:Versions:
6069-
* 2024-09-20 ``@ddalle`: v1.0
6070+
* 2024-09-20 ``@ddalle``: v1.0
60706071
"""
60716072
# Get archivist
60726073
a = self.get_archivist()

cape/optdict/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,6 +1901,7 @@ def get_subopt(self, sec: str, opt: str, key="Type", **kw):
19011901
2
19021902
>>> opts.get_subopt("C", "c")
19031903
3
1904+
19041905
:Call:
19051906
>>> v = opts.get_subopt(sec, opt, key="Type", **kw)
19061907
:Inputs:
@@ -2112,6 +2113,7 @@ def set_opt(self, opt: str, val, j=None, mode=None):
21122113
self[opt] = val
21132114

21142115
# Apply option to subsection, if possible
2116+
@expand_doc
21152117
def set_subopt(
21162118
self,
21172119
sec: str,

cape/pycart/cmdgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def autoInputs(opts=None, j=0, **kw):
141141
*halfBody*: ``True`` | {``False``}
142142
Create a half-body mesh that starts at ``0`` for one axis
143143
*symmX*: ``True`` | {``False``}
144-
Use *x*=0 for symmetry plane
144+
Use *x*\ =0 for symmetry plane
145145
:Outputs:
146146
*cmd*: :class:`list`\ [:class:`str`]
147147
Command split into a list of strings

cape/setup_py/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Compile and link
2121
SETUP_SETTINGS = dict(
2222
name="cape",
23-
version="2.1.2alpha",
23+
version="2.2.0",
2424
description="CAPE computational aerosciences package",
2525
long_description=LONG_DESCRIPTION,
2626
url="https://www.github.com/nasa/cape",

doc/api/cape/_cape.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

2-
:mod:`_cape3`: Compiled CAPE extension
2+
:mod:`_cape`: Compiled CAPE extension
33
===============================================
44

5-
The :mod:`cape._cape3` module contains methods that were written in C to
5+
The :mod:`_cape` module contains methods that were written in C to
66
increase speed and efficiency. The most commonly utilized methods enable Cape,
77
pyCart, etc. to write surface triangulations faster. Because these are simple
88
tasks that may need to be repeated many times, creating a compiled version can
99
save considerable time. However, Python versions of these methods are also
1010
included in the main modules.
1111

12-
.. automodule:: _cape3
12+
.. automodule:: _cape
1313
:members:

doc/api/cfdx/casecntl.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22
.. automodule:: cape.cfdx.casecntl
33
:members:
44

5-
.. autoclass:: cape.cfdx.casecntl.CaseRunner
6-
:members:
7-
:private-members: _archivist_cls, _dex_cls, _logprefix, _modname,
8-
_nstart_max, _progname, _rc_cls, _zombie_files
9-

doc/api/cfdx/cntl.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22
.. automodule:: cape.cfdx.cntl
33
:members:
44

5-
.. autoclass:: cape.cfdx.cntl.Cntl
6-
:members:
7-
:private-members: _case_cls, _case_mod, _databook_mod, _fjson_default,
8-
_name, _opts_cls, _report_mod, _solver,
9-
_warnmode_default, _warnmode_envvar, _zombie_files

doc/api/pylch/databook.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
.. automodule:: cape.pylch.databook
3+
:members:
4+

0 commit comments

Comments
 (0)