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

Update glob for variables with underscore #349

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

justin-richling
Copy link
Collaborator

There was an issue with the wildcard in globbing regridded files that would cause issues if two variable names were similar but one had an underscore, ie vpwp_mfl and vpwp.

There was an issue with the wildcard in globbing regridded files that would cause issues if two variable names were similar but one had an underscore, if vpwp_mfl and vpwp.
@justin-richling
Copy link
Collaborator Author

@brianpm I think this fix will address the problem of variables with underscores. It worked on the test cases Ben sent me. Can you just take a quick look and see if I might be missing any unintended consequences?

@brianpm
Copy link
Collaborator

brianpm commented Dec 12, 2024

Yeah, that does seem good! I sent you an alternative using a regex, but this seems nice and simple. Maybe we should have Ben test it?

@justin-richling justin-richling merged commit 42fd77d into NCAR:main Dec 13, 2024
7 checks passed
@justin-richling justin-richling deleted the glob-var-fix branch December 13, 2024 15:16
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