Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve mp6 and bug fix on mt3dms (#1354)
* fix(mt3d/Mt3dBtn): stop text options on mt3dms Mt3dBtn.write_file() wrote options regardless of version changed to only mt3dusgs * fix(modpath.mp6, modpath.mp6sim, modpath.mp6bas): allow mp6 to run without modflow model and ensure user specified files and data preferred implement reading layer,row,col,nper from dis file, remove unnecessary links to parent (modflow) model so that the mp model can run without passing a modflow model. Ensure user specified ibound and laytyp is used unless they are None, in which case read from parent modflow model Create test t081_test.py to ensure behaviour. * perf(mp6sim.StartingLocationsFile): Implement write particles with pandas Implement option to write particles with pandas which increases write speeds more than 2x. User can specifiy original behaviour and will not use pandas if it cannot be imported Include test t082_test.py to ensure output is identical * run pull_request_prepare.py (sorry) * test(t081_test, t082_test): allow tests to complete without executables allow tests to complete without executables (as per instructions from pull request review) * style(mp6sim): reformat optional dependency import to match standards reformat optional dependency (pandas) import to match standards as per pull request review * style(mp6sim): reformat with python pull_request_prepare.py reformat with python pull_request_prepare.py, (sorry for the two commits) * fix(./etc, examples/data/mf6/test003_gwfs_disv): address pull request comments * fix(t049_test): do not specify files, instead read from modflow object * Update flopy3_modpath6_example.ipynb fix(flopy3_modpath6_example.ipynb): do not specify files (head, dis,), instead read from modflow object. Previous example only worked because the head files were not handled correctly. * fix(mt3d/Mt3dBtn): stop text options on mt3dms Mt3dBtn.write_file() wrote options regardless of version changed to only mt3dusgs * fix(./etc) add mfpymake to etc environments so autotests run when using defined environments * fix(modpath.mp6, modpath.mp6sim, modpath.mp6bas): allow mp6 to run without modflow model and ensure user specified files and data preferred implement reading layer,row,col,nper from dis file, remove unnecessary links to parent (modflow) model so that the mp model can run without passing a modflow model. Ensure user specified ibound and laytyp is used unless they are None, in which case read from parent modflow model Create test t081_test.py to ensure behaviour. * perf(mp6sim.StartingLocationsFile): Implement write particles with pandas Implement option to write particles with pandas which increases write speeds more than 2x. User can specifiy original behaviour and will not use pandas if it cannot be imported Include test t082_test.py to ensure output is identical * run pull_request_prepare.py (sorry) * style(mp6sim): reformat optional dependency import to match standards reformat optional dependency (pandas) import to match standards as per pull request review * style(mp6sim): reformat with python pull_request_prepare.py reformat with python pull_request_prepare.py, (sorry for the two commits) * fix(./etc, examples/data/mf6/test003_gwfs_disv): address pull request comments * test: update tests and remote mfpymake from etc/environment.yml * fix(test_plot.py):: test_pathline_plot_xc do not specify files, instead read from modflow object. Previous version of modpath6 did not read the files but instead pulled the data from the model. Now if you want to specify the file you must pass the full path as it no longer assumes file is in the Modflow objects model_ws * docs: update flopy3_modpath6_example notebook * test: update test naming, use pytest-cases for mp6 tests, run linter * docs: update flopy3_modpath6_example notebook * run models silently (don't show paths from dev machine) * mention change in Modpath6 constructor arguments * follow temp workspace conventions from other notebooks * test: move mp6 and mp7 tests into appropriate files, define more fixtures with pytest-cases * test: catch ImportError when checking pkg availability Co-authored-by: w-bonelli <wesbonelli@gmail.com>
- Loading branch information