#NEWLINE# @ classmethod #NEWLINE# def setUpClass( self ) : #NEWLINE# #INDENT# self . lats = np . array ( [ 10 , 12 , 14 , 16 , 18 ] ) #NEWLINE# self . lons = np . array ( [ 100 , 102 , 104 , 106 , 108 ] ) #NEWLINE# self . times = np . array ( [ dt . datetime ( 2000 , x , 1 ) for x in range ( 1 , 13 ) ] ) #NEWLINE# flat_array = np . array ( range ( 300 ) ) #NEWLINE# self . values = flat_array . reshape ( 12 , 5 , 5 ) #NEWLINE# self . variable = 'var' #NEWLINE# self . units = 'units' #NEWLINE# self . origin = { #NEWLINE# #INDENT# 'source' : 'esgf' , #NEWLINE# 'dataset_id' : 'esgf dataset id' , #NEWLINE# 'variable' : 'var' , #NEWLINE# #UNINDENT# } #NEWLINE# self . name = 'name' #NEWLINE# self . dataset = Dataset ( self . lats , self . lons , self . times , self . values , variable = self . variable , units = self . units , origin = self . origin , name = self . name ) #NEWLINE# self . exported_info = writer . generate_dataset_config ( self . dataset )