Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(flake8): F821 for 'undefined name' errors #1350

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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