Package schrodinger :: Package application :: Package matsci :: Module bandshape_utils :: Class BandshapeSpectrumFile
[hide private]
[frames] | no frames]

Class BandshapeSpectrumFile

object --+
         |
        BandshapeSpectrumFile

Manage a bandshape spectrum file.

Instance Methods [hide private]
 
__init__(self, data_file_name, spm_file_name)
Create an instance.
 
_setUp(self)
Set up.
 
_buildTable(self)
Build the table.
 
_createFile(self)
Create the *spm file.
 
_tearDown(self)
Tear down.
 
write(self)
Write the *spm file.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
list
getData(data_file_name)
Return the data from the given data file.
Class Variables [hide private]
  ENERGY_KEY = 'r_j_Excitation_Energy_(eV)'
  ENERGY_TITLE = 'Excitation Energy (eV)'
  INTENSITY_KEY = 'r_j_Oscillator_Strength'
  INTENSITY_TITLE = 'Oscillator Strength'
  SYMMETRY_KEY = 's_j_Symmetry'
  SYMMETRY_TITLE = 'Symmetry'
  SPECTRUM_KEY = 's_j_spectrum_type'
  SPECTRUM_TITLE = 'Electronic Transition'
  X_KEY = 's_j_x_label'
  X_ALIAS = 'r_j_Excitation_Energy_(eV)'
  Y_KEY = 's_j_y_label'
  Y_ALIAS = 'r_j_Oscillator_Strength'
  HEADERS = OrderedDict([('s_j_spectrum_type', 'Electronic Trans...
  COLUMNS = OrderedDict([('r_j_Excitation_Energy_(eV)', 'Excitat...
  EXT = '.uvv.spm'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data_file_name, spm_file_name)
(Constructor)

 

Create an instance.

Parameters:
  • data_file_name (str) - the text file containing whitespace separated energies and intensities, one pair per line, energies in eV
  • spm_file_name (str) - the name of the *spm file to create
Overrides: object.__init__

getData(data_file_name)
Static Method

 

Return the data from the given data file.

Parameters:
  • data_file_name (str) - the text file containing whitespace separated energies and intensities, one pair per line, energies in eV
Returns: list
contains (energy, intensity) tuples

Class Variable Details [hide private]

HEADERS

Value:
OrderedDict([('s_j_spectrum_type', 'Electronic Transition'), ('s_j_x_l\
abel', 'r_j_Excitation_Energy_(eV)'), ('s_j_y_label', 'r_j_Oscillator_\
Strength')])

COLUMNS

Value:
OrderedDict([('r_j_Excitation_Energy_(eV)', 'Excitation Energy (eV)'),\
 ('r_j_Oscillator_Strength', 'Oscillator Strength'), ('s_j_Symmetry', \
'Symmetry')])