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

remove_record() method does not recognize parameter names #7

Closed
mrush-usgs opened this issue Feb 8, 2021 · 2 comments
Closed

remove_record() method does not recognize parameter names #7

mrush-usgs opened this issue Feb 8, 2021 · 2 comments

Comments

@mrush-usgs
Copy link

I am trying to remove parameters from the control file.

I can get_record(name='soilzone_module'):

soilzone_module
1
4
soilzone

But I can't remove_record(name='soilzone_module'):

/home/mrush/miniconda3/lib/python3.8/site-packages/gsflow/param_base.py:211: UserWarning: The record does not exist: soilzone_module
warnings.warn("The record does not exist: {}".format(name),

@jlarsen-usgs
Copy link
Contributor

@mrush-usgs
This is most likely a case sensitivity issue. I just pushed an update to force all of these methods to be case insensitive. Give the updated version a test and let me know if it works.

@jlarsen-usgs
Copy link
Contributor

@mrush-usgs
my first solution introduced an unexpected bug; I've updated it again. Please check the most recent version of the code out.

jlarsen-usgs added a commit that referenced this issue Feb 12, 2021
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

No branches or pull requests

2 participants