Skip to content
Snippets Groups Projects
Commit 9c722cf5 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

small update to allow creation of empty unlimited datasets

parent 7258a494
No related branches found
No related tags found
No related merge requests found
......@@ -358,7 +358,8 @@ class CT_CDF(netCDF4.Dataset):
if k not in ['name','dims','values','_FillValue','count']:
var.setncattr(k,v)
if nsets > 1 or self.has_unlimlen(datadict['dims']) == True:
#if nsets > 1 or self.has_unlimlen(datadict['dims']) == True:
if nsets > 1 or (nsets > 0 and self.has_unlimlen(datadict['dims']) ) == True:
ndims = var.ndim
datadict = ConvertCharDims(var,datadict)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment