FloPy 3.8.0
Version 3.8.0
This release includes a number of bugfixes, a few new features, and support for NumPy 2.
New features
- feat(datafile): Add .headers property with data frame (#2221). Committed by Mike Taves on 2024-06-11.
- feat(lgr-disv): Add to_disv_gridprops() method to lgr object (#2271). Committed by langevin-usgs on 2024-07-26.
Bug fixes
- fix(docs): Section underline matches section title (#2208). Committed by Mike Taves on 2024-06-06.
- fix(vtk): Fix __transient_vector access (#2209). Committed by mickey-tsai on 2024-06-06.
- fix(swt): Pass load_only down to Mt3dms.load() (#2222). Committed by wpbonelli on 2024-06-11.
- fix(ParticleTrackFile): Fix particle filtering in get_alldata (#2223). Committed by martclanor on 2024-06-11.
- fix(regression): Corrections to test_create_tests_transport (#2228). Committed by Mike Taves on 2024-06-13.
- fix(binaryread): Raise/handle EOFError, deprecate vartype=str (#2226). Committed by Mike Taves on 2024-06-13.
- fix(pandas warnings): Catch pandas warnings and display them in a more useful way (#2229). Committed by scottrp on 2024-06-14.
- fix: Test_uzf_negative_iuzfopt (#2236). Committed by Mike Taves on 2024-06-17.
- fix(PlotMapView): Default to all layers in plot_pathline() (#2242). Committed by wpbonelli on 2024-06-19.
- fix(Raster): Reclassify np.float64 correctly (#2235). Committed by martclanor on 2024-06-24.
- fix(HeadFile): Fix dis reversal, expand tests (#2247). Committed by wpbonelli on 2024-06-25.
- fix(mfmodel): Fix get_ims_package (#2272). Committed by martclanor on 2024-08-06.
- fix(modelgrid): Fix missing coord info if disv (#2284). Committed by martclanor on 2024-08-07.
- fix(examples): Restore example notebooks skipped after #2264 (#2286). Committed by wpbonelli on 2024-08-08.
Refactoring
- refactor(expired deprecation): Raise AttributeError with to_shapefile (#2200). Committed by Mike Taves on 2024-05-30.
- refactor: Deprecate unused flopy.utils.binaryfile.binaryread_struct (#2201). Committed by Mike Taves on 2024-05-31.
- refactor(exceptions): Raise NotImplementedError where appropriate (#2213). Committed by Mike Taves on 2024-06-07.
- refactor(datafile): Use len(obj) rather than obj.get_nrecords() (#2215). Committed by Mike Taves on 2024-06-11.
- refactor(binarygrid_util): Refactor get_iverts to be general and not dependent on grid type (#2230). Committed by langevin-usgs on 2024-06-14.
- refactor(datafile): Deprecate list_records() and other list_ methods (#2232). Committed by Mike Taves on 2024-06-14.
- refactor: Fixes for numpy-2.0 deprecation warnings, require numpy>=1.20.3 (#2237). Committed by Mike Taves on 2024-06-17.
- refactor: Np.where(cond) -> np.asarray(cond).nonzero() (#2238). Committed by wpbonelli on 2024-06-17.
- refactor(dependencies): Support numpy 2 (#2241). Committed by wpbonelli on 2024-06-19.
- refactor(get-modflow): Support ARM macs by default (previously opt-in) (#2225). Committed by wpbonelli on 2024-06-21.
- refactor(Raster): Add new methods and checks (#2267). Committed by Joshua Larsen on 2024-07-17.
- refactor(resample_to_grid): Filter raster nan values from scipy resampling routines (#2285). Committed by Joshua Larsen on 2024-08-08.