From 7ced34c037789d2af4670702648b6cf6d9156b38 Mon Sep 17 00:00:00 2001 From: Denis Nadeau Date: Tue, 1 May 2018 19:09:37 -0700 Subject: [PATCH] fix python 3 aggregation issue and flake8 (#244) * Fix python3 slice issue(setitem) and flake8 * update to libnetcdf 4.6 --- Src/Cdunifmodule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Cdunifmodule.c b/Src/Cdunifmodule.c index 400ba4f9..f5f3ba83 100644 --- a/Src/Cdunifmodule.c +++ b/Src/Cdunifmodule.c @@ -535,7 +535,9 @@ static int cdopen(const char* controlpath, int ncmode, CuFileType *filetype) { /* Take care for mode flag */ if ((cdms_classic == 0) || (cdms_shuffle != 0) || (cdms_deflate != 0) || (cdms_netcdf4 == 1)) { - ncmode = ncmode | NC_NETCDF4; + if(strstr(controlpath, "http") == NULL){ + ncmode = ncmode | NC_NETCDF4; + } } #ifdef PARALLEL /* ok we can only use MPIIO if not using shuffle or deflate for reason