Skip to content

Commit

Permalink
Format docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
pya committed Apr 6, 2024
1 parent a57ddd3 commit 4a5acc9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/pymf6/api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""modflowapi interface
"""
"""modflowapi interface."""

from enum import Enum

Expand All @@ -9,6 +8,7 @@

class States(Enum):
"""States of MODFLOW API."""

# pylint: disable=invalid-name
initialize = 0
stress_period_start = 1
Expand All @@ -27,11 +27,16 @@ def show_states(cls):


class Simulator:
"""Generator to run a Modflow simulation using the MODFLOW-API
with a loop"""
"""
Generator to run a Modflow simulation using the MODFLOW-API.
with a loop
"""

def __init__(self, dll, sim_path, verbose=False, _develop=False):
"""
Set initial values.
Parameters
----------
dll : str
Expand All @@ -45,6 +50,7 @@ def __init__(self, dll, sim_path, verbose=False, _develop=False):
file named "var_list.txt". This is primarily used for extensions
development purposes and bug fixes within the modflowapi python
package.
"""
self.verbose = verbose
self._develop = _develop
Expand All @@ -57,7 +63,11 @@ def __init__(self, dll, sim_path, verbose=False, _develop=False):
self._sim_grp = None

def loop(self):
"""Generator function to loop over all time steps."""
"""
Loop over all time steps.
Provides simulation group and state for each times step.
"""
mf6 = self._mf6
verbose = self.verbose
sim = self.api
Expand Down

0 comments on commit 4a5acc9

Please sign in to comment.