Skip to content

Commit

Permalink
v3infer
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Jan 7, 2025
2 parents 9646782 + 72ea68f commit a91ffb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions libnczarr/zinfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ NCZ_infer_open_nczarr_format(NC_FILE_INFO_T* file)
if(jsuperg == NULL && jsupera == NULL) nczarrformat = NCZARRFORMAT0; else nczarrformat = NCZARRFORMAT2;
NCZ_reclaim_json(jrootgrp); jrootgrp = NULL;
NCZ_reclaim_json(jrootatts); jrootatts = NULL;
}
} else
#ifdef NETCDF_ENABLE_NCZARR_V3
if(zarrformat == ZARRFORMAT3 && nczarrformat == 0) {
const NCjson* jrootatts = NULL;
Expand All @@ -272,7 +272,7 @@ NCZ_infer_open_nczarr_format(NC_FILE_INFO_T* file)
}
}
NCZ_reclaim_json(jrootgrp); jrootgrp = NULL;
}
} else
#else
{stat = NC_ENOTBUILT; goto done;}
#endif
Expand Down
2 changes: 0 additions & 2 deletions nczarr_test/run_nan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ for t in tst_nans ; do
rm -fr ${t}.$zext
rm -f tmp_${t}.dmp
fileargs $t
export NCTRACING=10
${NCGEN} -4 -lb -o ${fileurl} ${cdl}/${ref}.cdl
${NCDUMP} ${headflag} ${specflag} -n ${ref} ${fileurl} > tmp_${t}.dmp
unset NCTRACING
${ZMD} -t float ${fileurl}
# compare against expected
diff -b -w ${expected}/${ref}.dmp ./tmp_${t}.dmp
Expand Down
3 changes: 0 additions & 3 deletions nczarr_test/test_nczarr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ dumpmap() {
zext=$1
zbase=`basename $2 ".$zext"`
fileargs $zbase
df -h
export NCTRACING=10
${ZMD} -t int -x objdump $fileurl > $3
unset NCTRACING
}

# Function to remove selected -s attributes from file;
Expand Down

0 comments on commit a91ffb0

Please sign in to comment.