We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac6c6b commit 9220e42Copy full SHA for 9220e42
1 file changed
ncwriter/nc_dict.py
@@ -316,7 +316,7 @@ def createVariables(self, **kwargs):
316
like `zlib` and friends.
317
"""
318
for v in self.variables.keys():
319
- varname = self.variables[v]['name']
+ varname = v #self.variables[v]['name']
320
datatype = self.variables[v]['type']
321
dimensions = self.variables[v]['dims']
322
@@ -356,7 +356,7 @@ def createVariables(self, **kwargs):
356
self.ncobj.createVariable(
357
varname, datatype, dimensions=dimensions, **var_c_opts)
358
359
- if self.variables[v]['attr'] is not None:
+ if 'attr' in self.variables[v].keys():
360
attrs = self.variables[v]['attr'].copy()
361
for not_attr in self._create_var_opts(attrs):
362
attrs.pop(not_attr)
0 commit comments