Closed mwtoews closed 3 months ago
This PR changes deprecated .to_shapefile() functions to raise AttributeError with a helpful message.
.to_shapefile()
These are the affected functions:
flopy.utils.util_list.MfList.to_shapefile
flopy.pakbase.Package.to_shapefile
flopy.mbase.BaseModel.to_shapefile
While these functions have been deprecated since 3.2.4 released in 2016 (changelog), they were never documented as such. Thus a helpful exception message and cross-referenced docstring is used instead of removing these functions.
Xref to #1884 where a similar approach was used.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.8%. Comparing base (a49b613) to head (483c493). Report is 4 commits behind head on develop.
a49b613
483c493
This PR changes deprecated
.to_shapefile()
functions to raise AttributeError with a helpful message.These are the affected functions:
flopy.utils.util_list.MfList.to_shapefile
flopy.pakbase.Package.to_shapefile
flopy.mbase.BaseModel.to_shapefile
While these functions have been deprecated since 3.2.4 released in 2016 (changelog), they were never documented as such. Thus a helpful exception message and cross-referenced docstring is used instead of removing these functions.
Xref to #1884 where a similar approach was used.