Skip to content

Commit

Permalink
Merge pull request #72 from SorooshMani-NOAA/bugfix/param
Browse files Browse the repository at this point in the history
Add missing variable definition
  • Loading branch information
cuill authored May 4, 2023
2 parents c26718c + f95ec85 commit a1339f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyschism/param/opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def __init__(

def __str__(self):
data = []
PARAM_DEFAULTS = f90nml.read(pathlib.Path(__file__).parent / 'param.nml')["opt"]
for key, _ in PARAM_DEFAULTS.items():
current = getattr(self, key)
if current is not None:
Expand All @@ -102,6 +103,7 @@ def __str__(self):

def to_dict(self):
data = {}
PARAM_DEFAULTS = f90nml.read(pathlib.Path(__file__).parent / 'param.nml')["opt"]
for key, _ in PARAM_DEFAULTS.items():
current = getattr(self, key)
if current is not None:
Expand Down

0 comments on commit a1339f9

Please sign in to comment.