#NEWLINE# def set_minimum_specific_energy( self , specific_energy ) : #NEWLINE# #INDENT# '\n        Set the minimum specific energy for the dust\n\n        Parameters\n        ----------\n        specific_energy : float, list, tuple, or Numpy array\n\n        Notes\n        -----\n        This method should not be used in conjunction with\n        ``set_minimum_temperature`` - only one of the two should be used.\n        ' #NEWLINE# if np . isscalar ( specific_energy ) : #NEWLINE# #INDENT# validate_scalar ( 'specific_energy' , specific_energy , domain = 'positive' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( type ( specific_energy ) in [ list , tuple ] ) or is_numpy_array ( specific_energy ) ) : #NEWLINE# #INDENT# specific_energy = list ( specific_energy ) #NEWLINE# for value in specific_energy : #NEWLINE# #INDENT# validate_scalar ( 'specific_energy' , value , domain = 'positive' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( self . _minimum_temperature is not None ) : #NEWLINE# #INDENT# raise Exception ( 'minimum temperature has already been set' ) #NEWLINE# #UNINDENT# self . _minimum_specific_energy = specific_energy