parameters: (self)
docstring: Perform a sync-to-disk flush if the `netcdf_file` object is in write mode.
  
          See Also
          --------
          sync : Identical function
docstring_summary: Perform a sync-to-disk flush if the `netcdf_file` object is in write mode.
docstring_tokens: Perform a sync - to - disk flush if the netcdf_file object is in write mode .
function: def flush(self):
          """
          Perform a sync-to-disk flush if the `netcdf_file` object is in write mode.
  
          See Also
          --------
          sync : Identical function
  
          """
          if hasattr(self, 'mode') and self.mode in 'wa':
              self._write()
function_tokens: def flush ( self ) : if hasattr ( self , 'mode' ) and self . mode in 'wa' : self . _write ( )