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(csvfile): correction to read_csv args, close file handle #1590

Merged
merged 1 commit into from
Oct 16, 2022

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Oct 16, 2022

This fixes an argument mix-up with CsvFile (from #1587), where deletechars was passed as replace_space, and replace_space was never passed to np.genfromtxt.

Also, use a context manager to open/read/close file, as it does not need to be open any longer.

@codecov
Copy link

codecov bot commented Oct 16, 2022

Codecov Report

Merging #1590 (d1dbe76) into develop (2eeefd4) will not change coverage.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           develop   #1590   +/-   ##
=======================================
  Coverage     72.6%   72.6%           
=======================================
  Files          251     251           
  Lines        54419   54419           
=======================================
  Hits         39553   39553           
  Misses       14866   14866           
Impacted Files Coverage Δ
flopy/utils/observationfile.py 88.4% <100.0%> (ø)

@langevin-usgs
Copy link
Contributor

Doh. Thanks for the fix!

@langevin-usgs langevin-usgs merged commit a0a92ed into modflowpy:develop Oct 16, 2022
@mwtoews mwtoews deleted the fix-csvfile branch October 16, 2022 22:55
wpbonelli pushed a commit to wpbonelli/flopy that referenced this pull request Dec 14, 2022
wpbonelli pushed a commit to wpbonelli/flopy that referenced this pull request Dec 14, 2022
wpbonelli pushed a commit to wpbonelli/flopy that referenced this pull request Dec 14, 2022
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.

2 participants