-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from zklaus/backport-fix-hdf5-diag
Backport fix for Unidata/netcdf-c#2674
- Loading branch information
Showing
21 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ channel_sources: | |
channel_targets: | ||
- conda-forge main | ||
curl: | ||
- '7' | ||
- '8' | ||
cxx_compiler: | ||
- vs2019 | ||
hdf4: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
From b61e5cb9022b98312e6135bda859108352b531f0 Mon Sep 17 00:00:00 2001 | ||
From: uweschulzweida <[email protected]> | ||
Date: Wed, 5 Apr 2023 18:05:53 +0200 | ||
Subject: [PATCH] Fix issue #2674 | ||
|
||
--- | ||
libhdf5/hdf5open.c | 16 ++++++++++------ | ||
1 file changed, 10 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/libhdf5/hdf5open.c b/libhdf5/hdf5open.c | ||
index cb2491ff..e00f426e 100644 | ||
--- a/libhdf5/hdf5open.c | ||
+++ b/libhdf5/hdf5open.c | ||
@@ -1205,12 +1205,14 @@ static int get_quantize_info(NC_VAR_INFO_T *var) | ||
{ | ||
hid_t attid; | ||
hid_t datasetid; | ||
+ htri_t attr_exists; | ||
|
||
/* Try to open an attribute of the correct name for quantize | ||
* info. */ | ||
datasetid = ((NC_HDF5_VAR_INFO_T *)var->format_var_info)->hdf_datasetid; | ||
- attid = H5Aopen_by_name(datasetid, ".", NC_QUANTIZE_BITGROOM_ATT_NAME, | ||
- H5P_DEFAULT, H5P_DEFAULT); | ||
+ attr_exists = H5Aexists(datasetid, NC_QUANTIZE_BITGROOM_ATT_NAME); | ||
+ attid = attr_exists ? H5Aopen_by_name(datasetid, ".", NC_QUANTIZE_BITGROOM_ATT_NAME, | ||
+ H5P_DEFAULT, H5P_DEFAULT) : 0; | ||
|
||
if (attid > 0) | ||
{ | ||
@@ -1218,16 +1220,18 @@ static int get_quantize_info(NC_VAR_INFO_T *var) | ||
} | ||
else | ||
{ | ||
- attid = H5Aopen_by_name(datasetid, ".", NC_QUANTIZE_GRANULARBR_ATT_NAME, | ||
- H5P_DEFAULT, H5P_DEFAULT); | ||
+ attr_exists = H5Aexists(datasetid, NC_QUANTIZE_GRANULARBR_ATT_NAME); | ||
+ attid = attr_exists ? H5Aopen_by_name(datasetid, ".", NC_QUANTIZE_GRANULARBR_ATT_NAME, | ||
+ H5P_DEFAULT, H5P_DEFAULT) : 0; | ||
if (attid > 0) | ||
{ | ||
var->quantize_mode = NC_QUANTIZE_GRANULARBR; | ||
} | ||
else | ||
{ | ||
- attid = H5Aopen_by_name(datasetid, ".", NC_QUANTIZE_BITROUND_ATT_NAME, | ||
- H5P_DEFAULT, H5P_DEFAULT); | ||
+ attr_exists = H5Aexists(datasetid, NC_QUANTIZE_BITROUND_ATT_NAME); | ||
+ attid = attr_exists ? H5Aopen_by_name(datasetid, ".", NC_QUANTIZE_BITROUND_ATT_NAME, | ||
+ H5P_DEFAULT, H5P_DEFAULT) : 0; | ||
if (attid > 0) | ||
var->quantize_mode = NC_QUANTIZE_BITROUND; | ||
} | ||
-- | ||
2.39.1 | ||
|
217fc77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This is the friendly automated conda-forge-webservice.
I updated the Github team because of this commit.
You should get push access to this feedstock and CI services.
Your package won't be available for installation locally until it is built
and synced to the anaconda.org CDN (takes 1-2 hours after the build finishes).
Feel free to join the community chat room.
NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details on this are here.