@@ -328,13 +328,13 @@ def update_dimensions(self):
328328 )
329329 )
330330
331- def createDimensions (self ):
331+ def create_dimensions (self ):
332332 """Create the dimensions on the netcdf file"""
333333 for dname , dval in zip (self .dimensions .keys (),
334334 self .dimensions .values ()):
335335 self .ncobj .createDimension (dname , dval )
336336
337- def createVariables (self , ** kwargs ):
337+ def create_variables (self , ** kwargs ):
338338 """Create all variables for the current class
339339 **kwargs are included here to overload all options for all variables
340340 like `zlib` and friends.
@@ -390,7 +390,7 @@ def createVariables(self, **kwargs):
390390 attrs .pop (not_attr )
391391 ncvar .setncatts (attrs )
392392
393- def createGlobalAttrs (self ):
393+ def create_global_attributes (self ):
394394 """Add the global attributes for the current class"""
395395 for att in self .global_attributes .keys ():
396396 self .ncobj .setncattr (att , self .global_attributes [att ])
@@ -409,9 +409,9 @@ def to_netcdf(self, outfile, var_args={}, **kwargs):
409409 self .ncobj = netCDF4 .Dataset (self .outfile , mode = 'w' , ** kwargs )
410410
411411 self .update_dimensions ()
412- self .createDimensions ()
413- self .createVariables (** var_args )
414- self .createGlobalAttrs ()
412+ self .create_dimensions ()
413+ self .create_variables (** var_args )
414+ self .create_global_attributes ()
415415 self .ncobj .sync ()
416416 self .ncobj .close ()
417417 self .ncobj = netCDF4 .Dataset (self .outfile , 'a' )
0 commit comments