Skip to content

update(Raster, ModelTime): Deprecation warnings maintenance: - #2794

Merged
jlarsen-usgs merged 2 commits into
modflowpy:developfrom
jlarsen-usgs:develop
Aug 5, 2026
Merged

update(Raster, ModelTime): Deprecation warnings maintenance:#2794
jlarsen-usgs merged 2 commits into
modflowpy:developfrom
jlarsen-usgs:develop

Conversation

@jlarsen-usgs

Copy link
Copy Markdown
Contributor
  • replace numpy .shape = with .reshape() in Raster
  • replace datetime .utcfromtimestamp with .fromtimestamp(timestamp, timezone.utc) in ModelTime

* replace numpy .shape = with .reshape() in Raster
* replace .utcfromtimestamp with fromtimestamp(timestamp, timezone.utc) in ModelTime
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.83333% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.8%. Comparing base (556c088) to head (bfa371d).
⚠️ Report is 189 commits behind head on develop.

Files with missing lines Patch % Lines
flopy/plot/plotutil.py 0.0% 5 Missing ⚠️
flopy/mf6/utils/binaryfile_utils.py 0.0% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2794      +/-   ##
===========================================
+ Coverage     55.5%    72.8%   +17.2%     
===========================================
  Files          644      662      +18     
  Lines       124135   133004    +8869     
===========================================
+ Hits         68947    96832   +27885     
+ Misses       55188    36172   -19016     
Files with missing lines Coverage Δ
flopy/discretization/modeltime.py 79.4% <100.0%> (+2.5%) ⬆️
flopy/discretization/structuredgrid.py 54.0% <100.0%> (+6.5%) ⬆️
flopy/discretization/vertexgrid.py 80.0% <100.0%> (-3.7%) ⬇️
flopy/mf6/utils/binarygrid_util.py 89.6% <100.0%> (-1.2%) ⬇️
flopy/mf6/utils/model_splitter.py 65.4% <100.0%> (-9.5%) ⬇️
flopy/utils/postprocessing.py 80.1% <100.0%> (+2.5%) ⬆️
flopy/utils/rasters.py 70.0% <100.0%> (-4.0%) ⬇️
flopy/utils/zonbud.py 67.2% <100.0%> (+0.4%) ⬆️
flopy/mf6/utils/binaryfile_utils.py 10.6% <0.0%> (-42.1%) ⬇️
flopy/plot/plotutil.py 52.1% <0.0%> (-4.7%) ⬇️

... and 573 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

* numpy will be deprecating `.shape =` reshaping, migrating to reshape convention to prevent DeprecationWarnings
@jlarsen-usgs
jlarsen-usgs merged commit c07f86d into modflowpy:develop Aug 5, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant