Skip to content

Commit

Permalink
Update docstrings to comply with pydocstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
schymans committed Jul 7, 2021
1 parent bc20168 commit a30b9d4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions essm/_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,12 @@ def __str__(self):

def neweq(self, name, expr, doc='', parents=None, variables=None,
autovars=1):
"""Add new equation, including any variables.
"""
Add new equation, including any variables.
If you wish to suppress import of external variables,
pass autovars=0."""
pass autovars=0.
"""
if parents:
parents = ', '.join(parent + '.definition' for parent in parents)
else:
Expand Down Expand Up @@ -381,7 +383,8 @@ def neweq(self, name, expr, doc='', parents=None, variables=None,
self._imports['essm'].add(match.group())

def eq(self, eq1, autovars=1):
"""Add pre-defined equation to writer, incl. any variables.
"""
Add pre-defined equation to writer, incl. any variables.
If you wish to suppress import of external variables,
pass autovars=0.
Expand Down

0 comments on commit a30b9d4

Please sign in to comment.