#NEWLINE# def from_hdf5_group( self , group ) : #NEWLINE# #INDENT# from .. util.functions import asstr #NEWLINE# if ( asstr ( group . attrs [ 'emissvar' ] ) == 'E' ) : #NEWLINE# #INDENT# self . var_name = 'specific_energy' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( ( 'Unknown emissivity variable: %s' % group . attrs [ 'emissvar' ] ) ) #NEWLINE# #UNINDENT# temissvar = Table . read ( group , path = 'emissivity_variable' ) #NEWLINE# self . var = temissvar [ self . var_name ] #NEWLINE# temiss = Table . read ( group , path = 'emissivities' ) #NEWLINE# self . nu = temiss [ 'nu' ] #NEWLINE# self . jnu = temiss [ 'jnu' ] #NEWLINE# self . is_lte = ( group . attrs [ 'lte' ] . decode ( 'utf-8' ) . lower ( ) == 'yes' )