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

Patch to fix disabling mpi4py in cdms2.dataset #71

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

xylar
Copy link
Contributor

@xylar xylar commented Jul 7, 2021

For cdscan to work when MPI is disabled, we need to be able to call setNetcdfUseParallelFlag(0). Before this patch, this
call attempted to raise an error but there was a typo in the error name (CDSMError instead of CDMSError), causing added confusion. We only want to raise an error if the code is attempting to enable parallel NetCDF usage but MPI is disabled.

This patch is equivalent to CDAT/cdms#439

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

For `cdscan` to work when MPI is disabled, we need to be able
to call `setNetcdfUseParallelFlag(0)`.  Before this patch, this
call attempted to raise an error but there was a typo in the
error name (`CDSMError` instead of `CDMSError`), causing added
confusion.  We only want to raise an error if the code is
attempting to enable parallel NetCDF usage but MPI is disabled.
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@xylar
Copy link
Contributor Author

xylar commented Jul 7, 2021

@conda-forge-admin, please rerender

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2021

Hi! This is the friendly automated conda-forge-webservice.
I tried to rerender for you, but it looks like there was nothing to do.

@xylar
Copy link
Contributor Author

xylar commented Jul 7, 2021

This has been tested as described here: E3SM-Project/zppy#95 (comment)

Copy link
Contributor

@jasonb5 jasonb5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasonb5 jasonb5 merged commit 22021ec into conda-forge:master Jul 7, 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

Successfully merging this pull request may close these issues.

3 participants