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): default csvfile to retain all characters in column names #1587

Merged
merged 2 commits into from Oct 14, 2022

Conversation

langevin-usgs
Copy link
Contributor

  • The CsvFile load routine used default np.genfromtxt arguments, including those that would remove spaces, dashes, parentheses and others. This caused problems if these characters were used in obs names, for example. This PR changes default behavior so that these characters are not removed.

* The CsvFile load routine used default np.genfromtxt arguments, including those that would remove spaces, dashes, parentheses and others.  This caused problems if these characters were used in obs names, for example.  This PR changes default behavior so that these characters are not removed.
@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Merging #1587 (eb66950) into develop (7973c70) will increase coverage by 42.6%.
The diff coverage is 100.0%.

@@            Coverage Diff             @@
##           develop   #1587      +/-   ##
==========================================
+ Coverage     30.0%   72.6%   +42.6%     
==========================================
  Files          251     251              
  Lines        52947   54419    +1472     
==========================================
+ Hits         15886   39553   +23667     
+ Misses       37061   14866   -22195     
Impacted Files Coverage Δ
flopy/utils/observationfile.py 88.4% <100.0%> (+35.6%) ⬆️
flopy/mf6/modflow/mfgwtgwt.py 63.0% <0.0%> (-37.0%) ⬇️
flopy/mf6/modflow/mfgwfcsub.py 67.2% <0.0%> (-32.8%) ⬇️
flopy/mf6/modflow/mfgwtdisv.py 68.0% <0.0%> (-32.0%) ⬇️
flopy/mf6/modflow/mfgwtdisu.py 68.4% <0.0%> (-31.6%) ⬇️
flopy/mf6/modflow/mfgwtcnc.py 69.5% <0.0%> (-30.5%) ⬇️
flopy/mf6/modflow/mfgwtsrc.py 69.5% <0.0%> (-30.5%) ⬇️
flopy/mf6/modflow/mfgwfapi.py 69.6% <0.0%> (-30.4%) ⬇️
flopy/mf6/modflow/mfgwtlkt.py 70.3% <0.0%> (-29.7%) ⬇️
flopy/mf6/modflow/mfgwtmwt.py 70.3% <0.0%> (-29.7%) ⬇️
... and 207 more

@langevin-usgs langevin-usgs merged commit 2eeefd4 into modflowpy:develop Oct 14, 2022
@langevin-usgs langevin-usgs deleted the fix-csvfile branch October 14, 2022 18:03
wpbonelli pushed a commit to wpbonelli/flopy that referenced this pull request Dec 14, 2022
modflowpy#1587)

* The CsvFile load routine used default np.genfromtxt arguments, including those that would remove spaces, dashes, parentheses and others.  This caused problems if these characters were used in obs names, for example.  This PR changes default behavior so that these characters are not removed.
wpbonelli pushed a commit to wpbonelli/flopy that referenced this pull request Dec 14, 2022
modflowpy#1587)

* The CsvFile load routine used default np.genfromtxt arguments, including those that would remove spaces, dashes, parentheses and others.  This caused problems if these characters were used in obs names, for example.  This PR changes default behavior so that these characters are not removed.
wpbonelli pushed a commit that referenced this pull request Dec 14, 2022
#1587)

* The CsvFile load routine used default np.genfromtxt arguments, including those that would remove spaces, dashes, parentheses and others.  This caused problems if these characters were used in obs names, for example.  This PR changes default behavior so that these characters are not removed.
wpbonelli pushed a commit to wpbonelli/flopy that referenced this pull request Dec 14, 2022
modflowpy#1587)

* The CsvFile load routine used default np.genfromtxt arguments, including those that would remove spaces, dashes, parentheses and others.  This caused problems if these characters were used in obs names, for example.  This PR changes default behavior so that these characters are not removed.
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.

None yet

1 participant