Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PRT): allow empty recarray or dataframe for output conversion fns #2103

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

wpbonelli
Copy link
Member

@wpbonelli wpbonelli commented Feb 14, 2024

  • previously PRT <-> MP7 conversion functions crashed on empty DataFrame or recarray
  • return early if input argument is empty or already in desired format
  • consolidate pathline/endpoint output dtype definitions
  • convert PRT's name field to StringDtype if returning DataFrame
  • expand conversion function tests
  • fix branch names in dev docs

* previously conversion functions crashed if empty container passed
* return early if input argument is empty or already in desired format
* consolidate dtype definitions
* expand conversion fn tests
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (626563a) 71.3% compared to head (f364787) 73.0%.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #2103     +/-   ##
=========================================
+ Coverage     71.3%   73.0%   +1.6%     
=========================================
  Files          259     259             
  Lines        59364   59404     +40     
=========================================
+ Hits         42372   43396   +1024     
+ Misses       16992   16008    -984     
Files Coverage Δ
flopy/plot/plotutil.py 56.0% <95.6%> (+0.7%) ⬆️

... and 59 files with indirect coverage changes

@wpbonelli wpbonelli marked this pull request as ready for review February 18, 2024 22:34
@wpbonelli wpbonelli merged commit dda482b into modflowpy:develop Feb 19, 2024
24 checks passed
@wpbonelli wpbonelli deleted the prtutils branch February 19, 2024 03:13
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