Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
e4d9397
initial v3.2.13 release candidate
jdhughes-dev Jun 1, 2019
f0a7214
Fix(plotting): Bug fixes for issues #587 and #588 (#589)
jlarsen-usgs Jun 7, 2019
2b912da
suppressing error when proj4_str is None (#590)
mnfienen Jun 8, 2019
122ccd1
fix creep of btn obs loactions when reading and writing (#592)
briochh Jun 10, 2019
221145a
Zero-based integers for select ModflowFlwob variables (#596)
jbellino-usgs Jun 18, 2019
81b3904
fix(mfuzf): enforce boolean values for several uzf option arguments (…
christianlangevin Jun 20, 2019
48fb174
feat(export_contourf): export filled contours to shapefile (#599)
christianlangevin Jun 21, 2019
5547dc9
Fix(mbase.py): laytyp property method call to "UPW" package. (#601)
jlarsen-usgs Jun 22, 2019
b326ab2
Add load function to ModflowFlwob (#598)
jbellino-usgs Jun 24, 2019
88d5dff
fix(mtuzt): iuzbnd improperly generated (#605)
emorway-usgs Jul 2, 2019
93cf91b
Update version_changes.md
christianlangevin Jul 2, 2019
824ddb8
fix(mfsfr2.py): substituted graph for all_segments to improve perform…
aleaf Jul 2, 2019
6943cbb
Fix(contour_array_cvfd): fix for masked value crash issue using trico…
jlarsen-usgs Jul 11, 2019
e4f0222
fix(util_list.py): get_dataframe() iterating thru nper instead of dat…
aleaf Jul 11, 2019
5e438f2
fix(mtuzf1): a user comment on same line as nuzgag not processed corr…
emorway-usgs Jul 12, 2019
7e0a80d
fix(modflowpy#615): plotutil masked_values hnoflo, hdry fix (#618)
jlarsen-usgs Jul 22, 2019
4aa9661
refactor(namfile): whitespace in NAM file and MFList output files (#622)
mwtoews Jul 30, 2019
aea015d
fix(memory): "Cannot allocate memory" error for Python 2.7 on non-Win…
mwtoews Jul 30, 2019
a0edd54
fix(reference): resolve UnboundLocalError with crs property (#608)
mwtoews Aug 1, 2019
27e8bc0
fix(mf6): Fixes for #603, #606, #614, and #616 (#620)
spaulins-usgs Aug 1, 2019
648eeba
fix(export_contourf): tidy local variable overuse for Python 2.7 (#625)
mwtoews Aug 6, 2019
2eea963
fix(MFList): older numpy needs file in binary mode for writetxt (#626)
mwtoews Aug 6, 2019
fde9bc7
feat(intersect): add grid intersection functionality (#610)
dbrakenhoff Aug 6, 2019
4dcc79e
fix(travis 2.7): Travis memory errors (#627)
spaulins-usgs Aug 8, 2019
286252a
feat(mf6 rename all packages method + copy support (#591))
spaulins-usgs Aug 15, 2019
6c407c0
Fix(unstructured grid capabilities): fix array masking for CVFD grids…
jlarsen-usgs Aug 16, 2019
5c3f984
feat(sub): Add IDBIT option to SUB for MODFLOW-2005 option (#632)
jdhughes-dev Aug 17, 2019
ac38a1e
feat(mflistreader): read WEL Reductions from List File (#630)
ConstableCatnip Aug 17, 2019
0f8007c
Feat(rasters.py): Add raster intersection and resampling features to …
jlarsen-usgs Aug 28, 2019
842c89b
fix(evt): etvr not evtr in evt package (#635)
briochh Aug 28, 2019
41dd80d
fix(sfr): remove sensitivity to SFR reach_data (ds2) rec array order.…
briochh Aug 28, 2019
ac259c7
fix(mfmnw2): bug fix for writing multiple stress periods
aymanalz Sep 3, 2019
32309e2
feat(GridIntersect): import GridIntersect from __init__ (#640)
jtwhite79 Sep 6, 2019
c7bb2c2
fix(gridintersect): removed matplotlib dependency (#643)
christianlangevin Sep 9, 2019
2434d2d
fix(mflistfile): parse immobile components from mt3d listfile (#644)
briochh Sep 15, 2019
4ef4f3b
fix(gridgen): changed sr usage to modelgrid
christianlangevin Sep 15, 2019
2ab82f6
refactor(vdf): shut off density limiters as default (#646)
christianlangevin Sep 15, 2019
5914bbe
docs(dfn): update some MODFLOW 6 variable descriptions (#648)
christianlangevin Sep 17, 2019
5bdd2e6
fix(mtbtn): options from load method ignored (#649)
mwtoews Sep 18, 2019
476c861
fix(notebooks): add missing figure (#650)
christianlangevin Sep 18, 2019
7b078ca
fix(CellBudgetFil): get_ts() wasnt setting totim in the result contai…
jtwhite79 Sep 26, 2019
80a8a7f
Update(export): Updated the export method to accept modelgrid in **kw…
jlarsen-usgs Sep 26, 2019
7d1bc90
fix(tutorial2): zorder keyword in clabel no longer supported (#654)
christianlangevin Sep 27, 2019
d0a4f47
Fix(mfuzf1): fix read and write dataset 4b when specifysurfk option i…
jlarsen-usgs Oct 3, 2019
71e17bb
fix(mflak): allow mflak class to use -1 as a flag for using previous …
aymanalz Oct 3, 2019
9017fa8
fix(SpatialReference): fix coordinate information being passed to Spa…
jlarsen-usgs Oct 5, 2019
c9984d0
feat(PlotCrossSection): add geographic_coords flag to PlotCrossSectio…
jlarsen-usgs Oct 8, 2019
c305e95
Add feature to allow 'with' context statement to read Head/CellBudget…
mwtoews Oct 9, 2019
3f9c9e7
refactor(modelgrid): model grid caching change (#667)
spaulins-usgs Oct 9, 2019
7dc1ec8
fix(ModflowUzf1): load datasets if NUZF1..4 >= 0 (#668)
jlarsen-usgs Oct 9, 2019
0afbf2d
fix(Python 2): use a few aliases for exceptions (#672)
mwtoews Oct 11, 2019
32f32c1
refactor(load methods): avoid ResourceWarning with unclosed files (#673)
mwtoews Oct 11, 2019
9ea47a4
refactor(travis): use script files rather than awkward YAML file (#676)
mwtoews Oct 16, 2019
dc87007
feature(ci): check Python code with flake8 (#677)
mwtoews Oct 16, 2019
ff43c7c
fix(gridgen): fixed writing of mf6 disu package (#680)
christianlangevin Oct 17, 2019
bbe3f55
fix(ModflowSfr2.load): don't try to read datasets 6b,c in cases where…
aleaf Oct 18, 2019
da3ad6f
Resolve bugs related to F821 undefined name 'name' (#686)
mwtoews Oct 20, 2019
edb15b7
fix(flake8 code F811): redefinition of unused 'name' (#688)
mwtoews Oct 20, 2019
38d96d3
Fix(#675): hfb load parameters when Factor is excluded (#685)
jlarsen-usgs Oct 20, 2019
b5f8cf7
feat: support for copy.copy() and copy.deepcopy() with python 3.5+ (#…
aleaf Oct 21, 2019
2d76758
fix(ulstrd): lists for wel, drn, ghb, etc. not always loaded correctl…
christianlangevin Oct 23, 2019
cb02669
tests(t004): fix small issue that only occurs on Windows (#695)
christianlangevin Oct 24, 2019
20d881b
refactor(gridintersect): wrap shapely imports in try/except (#698)
christianlangevin Oct 26, 2019
a3742dd
refactor(dis): removed dis.read_from_cnf() method. (#699)
christianlangevin Oct 27, 2019
134557a
feat(#693) and fix(#691) (#696)
spaulins-usgs Oct 28, 2019
7e4cd89
fix(flake8 code W605): invalid escape sequence '\s' (or similar) (#700)
mwtoews Oct 29, 2019
151625a
fix(EpsgReference): complete methods for expected operation (#702)
mwtoews Oct 29, 2019
fb67758
refactor(SfrFile): detect other column names, remove methods (#708)
mwtoews Nov 1, 2019
4a9ea1a
feat(nper/sim): allow stress periods beyond nper, and allow setting s…
spaulins-usgs Nov 1, 2019
214d5a1
refactor(mfsfr2): format floats as '{:.8g}' with older NumPy versions…
mwtoews Nov 5, 2019
06343a7
fix(#707): Loading Optimized for MFLists in Special Cases (#711)
spaulins-usgs Nov 5, 2019
bc4e54f
doc(pangeo): add support for pangeo to run example notebooks (#713)
jdhughes-dev Nov 5, 2019
7cbc489
doc(pangeo): update support for pangeo to run example notebooks (#714)
jdhughes-dev Nov 6, 2019
09e8422
fix(irch): converted irch to be one based (#716)
jtwhite79 Nov 7, 2019
d25b67d
fix(modflowpy#720): explicitly set shapefile record dtypes in write_g…
jlarsen-usgs Nov 14, 2019
c7856a5
refactor(namefile): format values with str() and remove extra "; " (#…
mwtoews Nov 14, 2019
9f06345
fix(mfsfr2.py): isfropt and icalc read/write logic (#723)
jlarsen-usgs Nov 15, 2019
f8b26c5
fix(mflist optimization): The mflist optimization code crashed when a…
spaulins-usgs Nov 15, 2019
52ef51d
feat(vtk) updated vtk export capabilities in flopy. (#717)
martindjm Nov 15, 2019
3d83667
Merge remote-tracking branch 'origin/master' into develop
jdhughes-dev Nov 18, 2019
9dc3281
initial develop branch for release 3.3.0
jdhughes-dev Nov 18, 2019
46a7dad
docs: fix typo and small mistakes (#729)
Nov 19, 2019
d0225ab
doc(mffhb): correct minor mistake in docstring (#726)
rabbl Nov 19, 2019
84b133c
fix(binder): convert to mybinder.org (#731)
jdhughes-dev Nov 19, 2019
abccfb7
refactor(setup/ci): require and test Python 3.5, 3.6, 3.7 and 3.8 (#728)
mwtoews Nov 19, 2019
a1e0872
docs: clarify statement and add whitespace (#735)
Nov 22, 2019
a657a84
fix(flake8 code F632): use '==' instead of 'is' (#734)
mwtoews Nov 22, 2019
c03821d
fix(mnw2): fix issues with files with empty lines (#736)
jdhughes-dev Nov 22, 2019
8c118ec
fix(mnw2): fix issues causing random failures on python 3.5 (#739)
jdhughes-dev Nov 23, 2019
935db67
fix(ModflowDis.sr): rotate model prior to calculating xll and yll fro…
jlarsen-usgs Nov 25, 2019
0341a29
mnw2 missing itmp when zero (#742)
ConstableCatnip Dec 3, 2019
88703c2
fix(model relative path): always register model prior to setting mode…
scottrp Dec 4, 2019
723c7e9
CI(t007): patch for python 3.8 (#751)
jdhughes-dev Dec 10, 2019
677c1d4
Update flopy author list in software citation (#750)
jentjr Dec 10, 2019
9c866fd
refact(docstrings): refactored docstrings in mfsimulation (#752)
spaulins-usgs Dec 11, 2019
14b0ddf
Update(plotting): update plotting examples and fixes for mf6 bugs (#755)
jlarsen-usgs Dec 11, 2019
cb4101a
fix(mflist): fixed record shape in get_empty; test add_record (#758)
mwtoews Dec 12, 2019
6be7fdc
fix(boundnames): Fixed problem loading boundnames (#757)
spaulins-usgs Dec 12, 2019
f83f382
fix(mtssm): fix assumption that transient NSS data appears in first s…
emorway-usgs Dec 12, 2019
aa4b667
fix(upw): keyword for vertical K (#746)
ConstableCatnip Dec 12, 2019
331319b
fix(dfns): update MODFLOW 6 dfns for next flopy (3.3.0) and mf6 (6.1.…
jdhughes-dev Dec 12, 2019
6e94b27
refactor(release): update make-release script to generate author name…
jdhughes-dev Dec 12, 2019
0d27887
ci(exes): update executables version to 3.0 (#761)
jdhughes-dev Dec 14, 2019
000dfd8
release: 3.3.0
jdhughes-dev Dec 14, 2019
c39ded7
release: 3.3.0
jdhughes-dev Dec 14, 2019
7ca36fd
release: 3.3.0
jdhughes-dev Dec 14, 2019
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
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ flopy/.idea

examples/Notebooks/data
examples/Notebooks/temp
examples/Notebooks/.ipynb_checkpoints
examples/FAQ/temp
examples/FAQ/.ipynb_checkpoints
examples/Testing/.idea
examples/Testing/data
examples/Testing/.ipynb_checkpoints
examples/scripts/data
examples/groundwater_paper/Notebooks/temp
examples/groundwater_paper/Notebooks/.ipynb_checkpoints

# ignore all .ipynb_checkpoints
.ipynb_checkpoints

autotest/*.bin
autotest/*.dat
Expand Down
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@ services:
- xvfb
matrix:
include:
- env: RUN_TYPE=test
python: 2.7
- env: RUN_TYPE=misc
python: 3.7
- env: RUN_TYPE=test
python: 3.5
- env: RUN_TYPE=test
python: 3.6
- env: RUN_TYPE=test
python: 3.7
- env: RUN_TYPE=misc
python: 3.7
# - env: RUN_TYPE=test
# python: 3.8-dev
- env: RUN_TYPE=test
python: 3.8
# allow_failures:
# - env: RUN_TYPE=test
# python: 3.8-dev
# python: 3.8
cache:
pip: true
directories:
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ We want to fix all the issues as soon as possible, but before fixing a bug we ne
- version of FloPy used
- and most importantly - a use-case that fails (ideally an example that uses flopy to generate FloPy input files - see `t0**_test.py` python scripts in the `autotest/` directory)

We will be insisting on a minimal minimal, complete, and verifiable example in order to save maintainers time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
We will be insisting on a minimal, complete, and verifiable example in order to save maintainers time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.

Unfortunately, we are not able to investigate / fix bugs without a minimal, complete, and verifiable example, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.

Expand All @@ -76,7 +76,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
nosetests -v t*_test.py
```
Note: the FloPy test suite requires the [nosetests](https://pypi.org/project/nose/) and [pymake](https://github.com/modflowpy/pymake) python packages.

1. Commit your changes using a descriptive commit message that follows our
[commit message conventions](#commit). Adherence to these conventions
is necessary because release notes are automatically generated from these messages.
Expand Down Expand Up @@ -195,6 +195,7 @@ The scope should be the name of the FloPy module/class affected (as perceived by

There are currently a few exceptions to the "use module/class name" rule:

* **release**: used when updating files prior to a release
* **releasenotes**: used for updating the release notes
* **readme**: used for updating the release notes in README.md
* **changelog**: used for updating the release notes in CHANGELOG.md
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

<img src="https://raw.githubusercontent.com/modflowpy/flopy/master/examples/images/flopy3.png" alt="flopy3" style="width:50;height:20">

### Version 3.2.13
### Version 3.3.0
[![Build Status](https://travis-ci.org/modflowpy/flopy.svg?branch=master)](https://travis-ci.org/modflowpy/flopy)
[![PyPI Version](https://img.shields.io/pypi/v/flopy.png)](https://pypi.python.org/pypi/flopy)
[![Coverage Status](https://coveralls.io/repos/github/modflowpy/flopy/badge.svg?branch=master)](https://coveralls.io/github/modflowpy/flopy?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b23a5edd021b4aa19e947545ab49e577)](https://www.codacy.com/app/jdhughes-usgs/flopy?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=modflowpy/flopy&amp;utm_campaign=Badge_Grade)[![Binder](https://aws-uswest2-binder.pangeo.io/badge_logo.svg)](https://aws-uswest2-binder.pangeo.io/v2/gh/modflowpy/flopy.git/master)

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b23a5edd021b4aa19e947545ab49e577)](https://www.codacy.com/app/jdhughes-usgs/flopy?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=modflowpy/flopy&amp;utm_campaign=Badge_Grade)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/modflowpy/flopy.git/master)

Introduction
-----------------------------------------------
Expand Down Expand Up @@ -112,12 +112,12 @@ Installation

**Python versions:**

FloPy requires **Python** 2.7 or **Python** 3.5 (or higher). **<span style="color:red" style="text-decoration:underline">Support for Python versions < 3.5 will be dropped in the next version of FloPy (version 3.3.0)</span>**
FloPy requires **Python** 3.5 (or higher).


**Dependencies:**

FloPy requires **NumPy** 1.9 (or higher) and **enum34** for **Python** 2.7 or **Python** 3.3.
FloPy requires **NumPy** 1.9 (or higher).


**For base and Anaconda Python distributions:**
Expand Down Expand Up @@ -216,7 +216,7 @@ How to Cite

##### ***Software/Code citation for FloPy:***

[Bakker, M., Post, V., Langevin, C.D., Hughes, J.D., White, J.T., Starn, J.J., and Fienen, M.N., 2019, FloPy v3.2.13: U.S. Geological Survey Software Release, 17 November 2019, http://dx.doi.org/10.5066/F7BK19FH](http://dx.doi.org/10.5066/F7BK19FH)
[Bakker, M., Post, V., Langevin, C. D., Hughes, J. D., White, J. T., Leaf, A. T., Paulinski, S. R., Larsen, J. D., Toews, M. W., Morway, E. D., Bellino, J. C., Starn, J. J., and Fienen, M. N., 2019, FloPy v3.3.0: U.S. Geological Survey Software Release, 14 December 2019, http://dx.doi.org/10.5066/F7BK19FH](http://dx.doi.org/10.5066/F7BK19FH)


MODFLOW Resources
Expand Down
2 changes: 1 addition & 1 deletion autotest/build_exes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

os.environ["TRAVIS"] = "1"

download_version = '2.0'
download_version = '3.0'

# path where downloaded executables will be extracted
exe_pth = 'exe_download'
Expand Down
15 changes: 15 additions & 0 deletions autotest/t003_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ def test_loadtwrip():
assert ml.load_fail is False

return


def test_loadtwrip_upw():
cwd = os.getcwd()
pth = os.path.join('..', 'examples', 'data', 'parameters')
assert (os.path.isdir(pth))
os.chdir(pth)
namefile = 'twrip_upw.nam'
ml = flopy.modflow.Modflow.load(namefile, verbose=True)
os.chdir(cwd)
assert isinstance(ml, flopy.modflow.Modflow)
assert ml.load_fail is False

return


def test_loadoc():
Expand Down Expand Up @@ -116,3 +130,4 @@ def test_load_nam_mt_nonexistant_file():
test_loadfreyberg()
test_loadoahu()
test_loadtwrip()
test_loadtwrip_upw()
Loading