Skip to content

Commit fc237f3

Browse files
authored
Updating docstrings to latest flake8 version (#90)
* flake8 fixes * full stoppp * fix doc build + add noqa for mdolab theme imports
1 parent 1281ec4 commit fc237f3

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

baseclasses/problems/FluidProperties.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class FluidProperties:
55
"""
6+
This class is the parent of pyAero_problem and defines the basic flow properties to be passed to the solver.
7+
It also has a method to update the dynamic viscosity through the Sutherland's law based on flow temperature and other optional user inputs.
8+
69
Parameters
710
----------
811

baseclasses/problems/pyFieldPerformance_problem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class FieldPerformanceProblem:
5555
span : float
5656
Total wingspan
5757
58-
** Note ** Thrust and weight should be specified in terms of force.
58+
\*\* Note \*\* Thrust and weight should be specified in terms of force.
59+
5960
T_VA : float
6061
Idle thrust during approach. <force>
6162
T_VF : float
@@ -75,7 +76,8 @@ class FieldPerformanceProblem:
7576
TOW : float
7677
Takeoff gross weight. <force>
7778
78-
** Note ** TSFC should be specified in terms of mass / time / force.
79+
\*\* Note \*\* TSFC should be specified in terms of mass / time / force.
80+
7981
TSFC_VA : float
8082
Thrust-specific fuel consumption with engine in idle during approach.
8183
TSFC_VF : float
@@ -92,11 +94,13 @@ class FieldPerformanceProblem:
9294
Examples
9395
--------
9496
FP = FieldPerformance('gulfstream')
97+
9598
fpp = FieldPerformanceProblem(name='fpp1',TOW=W,span=b,CLmax=CLmax,
9699
WingHeight=5.6,runwayFrictionCoef=0.04,Area=S,
97100
CD0=0.015,CD0_LG=0.0177,CD0_HL=0,
98101
T_VG=T_VG,T_VT=T_VT,TSFC_VG=TSFC,TSFC_VT=TSFC,
99102
altitude=0,units='english')
103+
100104
fpp.addDV('TOW')
101105
funcs = {}
102106
funcsSens = {}

baseclasses/testing/pyRegTest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def root_add_dict(self, name, d, **kwargs):
191191
The name of the dictionary
192192
d : dict
193193
The dictionary to add
194-
**kwargs
194+
\*\*kwargs
195195
See :meth:`getTol <baseclasses.BaseRegTest.getTol>` on how to specif tolerances.
196196
"""
197197
with multi_proc_exception_check(self.comm):
@@ -209,7 +209,7 @@ def par_add_val(self, name, values, **kwargs):
209209
The name of the value
210210
values : ndarray
211211
The array to be added. This must be a numpy array distributed over self.comm
212-
**kwargs
212+
\*\*kwargs
213213
See :meth:`getTol <baseclasses.BaseRegTest.getTol>` on how to specif tolerances.
214214
"""
215215
if self.comm is None:
@@ -229,7 +229,7 @@ def par_add_sum(self, name, values, **kwargs):
229229
The name of the value
230230
values : ndarray
231231
The array to be added. This must be a numpy array distributed over self.comm
232-
**kwargs
232+
\*\*kwargs
233233
See :meth:`getTol <baseclasses.BaseRegTest.getTol>` on how to specif tolerances.
234234
"""
235235
if self.comm is None:
@@ -249,7 +249,7 @@ def par_add_norm(self, name, values, **kwargs):
249249
The name of the value
250250
values : ndarray
251251
The array to be added. This must be a numpy array distributed over self.comm
252-
**kwargs
252+
\*\*kwargs
253253
See :meth:`getTol <baseclasses.BaseRegTest.getTol>` on how to specif tolerances.
254254
"""
255255
if self.comm is None:

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from sphinx_mdolab_theme.config import *
1+
from sphinx_mdolab_theme.config import * # noqa F403
22

33
# -- Path setup --------------------------------------------------------------
44
# If extensions (or modules to document with autodoc) are in another directory,
@@ -17,7 +17,7 @@
1717
# Built-in Sphinx extensions are already contained in the imported variable
1818
# here we add external extensions, which must also be added to requirements.txt
1919
# so that RTD can import and use them
20-
extensions.extend(["numpydoc"])
20+
extensions.extend(["numpydoc"]) # noqa F405
2121

2222
# mock import for autodoc
2323
autodoc_mock_imports = ["numpy", "pygeo", "mpi4py"]

0 commit comments

Comments
 (0)