8
« on: July 30, 2009, 10:45 »
when i execute that file i got this following error in command prompt. since the vnl file contains only one sample i hit enter, when it asked me to enter sample name.
Please enter VNL file name: Au100-Au8-Au100_Transmission_4*4*100.vnl
The following samples are present in this VNL file:
['Au100-Au8-Au100']
Please enter sample name to extract (default=first sample):
---------------------------------------------------------------------------
exceptions.KeyError Traceback (most recent call last)
/home/rocks2/valsa/prem/kpoints/extract_transmission_from_vnl_file.py
30
31 # Some older versions used "Transmission Spectrum" or "TransmissionSpectrum"
---> 32 trans = data['Transmission Spectrum Transmission Spectrum']
33 print 'Energy (eV)\tTotal transmission'
34 print '----------------------------------'
KeyError: 'Transmission Spectrum Transmission Spectrum'
WARNING: Failure executing file: <extract_transmission_from_vnl_file.py>
ATK 2008.10.0 Linux-x86_64 build 14677 2008-11-27