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

Bug fix: Use proper default value for weightsdir in file_regrid.py #279

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

yantosca
Copy link
Contributor

@yantosca yantosca commented Dec 7, 2023

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Confirm you have reviewed the following documentation

Describe the update

This is the companion PR to #278. The proper default value for the --weightsdir argument to gcpy/file_regrid.py is now used. This had been False but it should have been ".".

Expected changes

This will prevent a TypeError when the --weightsdir argument is not passed to file_regrid.py.

Related Github Issue(s)

This commit fixes the bug described in #278.

gcpy/file_regrid.py
- Change the default value for weightsdir from False to "." where
  command line arguments are parsed.  This will prevent a TypeError.
  This bug was likely caused by a cut-n-paste error.

Signed-off-by: Bob Yantosca <[email protected]>
@yantosca yantosca added topic: Regridding Issues pertaining to horizontal & vertical regridding category: Bug Fix Fixes a bug that was previously reported labels Dec 7, 2023
@yantosca yantosca added this to the 1.4.1 milestone Dec 7, 2023
@yantosca yantosca requested a review from lizziel December 7, 2023 16:35
@yantosca yantosca self-assigned this Dec 7, 2023
@yantosca yantosca linked an issue Dec 7, 2023 that may be closed by this pull request
3 tasks
gcpy/file_regrid.py
- Now use "." as the default value for --weightsdir, which will save
  regridding weights to the current directory.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <[email protected]>
@yantosca yantosca merged commit 9ab1a2d into dev Dec 8, 2023
2 of 5 checks passed
@yantosca yantosca deleted the bugfix/file-regrid branch December 8, 2023 21:51
yantosca added a commit that referenced this pull request Dec 8, 2023
This is the official release commit for GCPy 1.4.1.

This is a bugfix release that fixes the issue that was described in
issue #278.  This was resolved with PR #279.

Signed-off-by: Bob Yantosca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported topic: Regridding Issues pertaining to horizontal & vertical regridding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError encountered when running file_regrid.py
2 participants