-
Notifications
You must be signed in to change notification settings - Fork 322
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(mfusg), Feat(mfusgcln, mfusggnc) #1261
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8e12079
modflowusg
swfwmd 49f00c6
refactor(modflowusg)
cnicol-gwlogic a26ebb9
Refactor(mfusg), Feat(mfusgcln, mfusggnc)
cnicol-gwlogic e70cfba
Merge remote-tracking branch 'upstream/develop' into mfusg
cnicol-gwlogic 379ccb5
refactor(t420_test.py) for mfusg restructure
cnicol-gwlogic 59a17a6
rename(modflowusg-->mfusg) rename all modules, classes etc for simpli…
cnicol-gwlogic f47348a
rename(t420_test.py-->t080_test.py)
cnicol-gwlogic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,4 @@ autotest/.noseids | |
.docs/_temp | ||
.docs/_notebooks | ||
|
||
*.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,6 @@ | |
import flopy | ||
from flopy.utils.gridgen import Gridgen | ||
|
||
try: | ||
import matplotlib | ||
import matplotlib.pyplot as plt | ||
from matplotlib.collections import QuadMesh, PathCollection, LineCollection | ||
except: | ||
print("Matplotlib not installed, tests cannot be run.") | ||
matplotlib = None | ||
plt = None | ||
|
||
Comment on lines
-21
to
-29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Glad you got this one. Also noticed that it is t420. We can change that number in a future PR. |
||
# Set gridgen executable | ||
gridgen_exe = "gridgen" | ||
if platform.system() in "Windows": | ||
|
@@ -92,18 +83,17 @@ def test_mfusg(): | |
# create the mfusg modoel | ||
ws = os.path.join(tpth, "gridgen_mfusg") | ||
name = "mymodel" | ||
m = flopy.modflow.Modflow( | ||
m = flopy.mfusg.MfUsg( | ||
modelname=name, | ||
model_ws=ws, | ||
version="mfusg", | ||
exe_name=mfusg_exe, | ||
structured=False, | ||
) | ||
disu = flopy.modflow.ModflowDisU(m, **gridprops) | ||
disu = flopy.mfusg.MfUsgDisU(m, **gridprops) | ||
bas = flopy.modflow.ModflowBas(m) | ||
lpf = flopy.modflow.ModflowLpf(m) | ||
lpf = flopy.mfusg.MfUsgLpf(m) | ||
chd = flopy.modflow.ModflowChd(m, stress_period_data=chdspd) | ||
sms = flopy.modflow.ModflowSms(m) | ||
sms = flopy.mfusg.MfUsgSms(m) | ||
oc = flopy.modflow.ModflowOc(m, stress_period_data={(0, 0): ["save head"]}) | ||
m.write_input() | ||
|
||
|
@@ -137,4 +127,4 @@ def test_mfusg(): | |
return | ||
|
||
if __name__ == '__main__': | ||
test_mfusg() | ||
test_mfusg() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice discovery with good-names. I think we are planning to ditch this short name linting requirement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep cool. The other thing I noticed on this side of things was that you can't win on the docstring 1st line issues - it seems like one of prospector's (or codacy's) linting tools likes the summary on the same line as the opening quotes, while another likes it on the next line down...either that or I am missing something ridiculously obvious (quite possible!).