#NEWLINE# def _choose_load_data( self , data_importer = None ) : #NEWLINE# #INDENT# if ( data_importer is None ) : #NEWLINE# #INDENT# self . add_datasets ( self . data_collection , data_wizard ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = data_importer ( ) #NEWLINE# if ( not isinstance ( data , list ) ) : #NEWLINE# #INDENT# raise TypeError ( 'Data loader should return list of Data objects' ) #NEWLINE# #UNINDENT# for item in data : #NEWLINE# #INDENT# if ( not isinstance ( item , Data ) ) : #NEWLINE# #INDENT# raise TypeError ( 'Data loader should return list of Data objects' ) #NEWLINE# #UNINDENT# #UNINDENT# self . add_datasets ( data . data_collection , data )