Skip to content

Commit

Permalink
refactor(flake8): F821 for 'undefined name' errors (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews authored Feb 18, 2022
1 parent b59f1fe commit e3d15ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flopy/mf6/data/mfdatalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ def has_data(self, key=None):
return True
return False
else:
self.get_data_prep(layer)
self.get_data_prep(key)
return super().has_data()

def get_data(self, key=None, apply_mult=False, **kwargs):
Expand Down
7 changes: 4 additions & 3 deletions release/make-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import subprocess
import sys
from importlib.machinery import SourceFileLoader

# file_paths dictionary has file names and the path to the file. Enter '.'
# as the path if the file is in the root repository directory
Expand All @@ -20,12 +21,12 @@
pak = "flopy"

# local import of package variables in flopy/version.py
# imports author_dict
exec(open(os.path.join("..", "flopy", "version.py")).read())
loader = SourceFileLoader("version", os.path.join("..", "flopy", "version.py"))
version_mod = loader.load_module()

# build authors list for Software/Code citation for FloPy
authors = []
for key in author_dict.keys():
for key in version_mod.author_dict.keys():
t = key.split()
author = f"{t[-1]}"
for str in t[0:-1]:
Expand Down

0 comments on commit e3d15ee

Please sign in to comment.