7
« on: March 28, 2010, 07:36 »
According to the VNL2010.02 tutorial, I used the current.py after the calculating of transmission Spectrum for getting the current of LiH2 chain. The script of "current.py" is copied from tutorial as following:
from NanoLanguage import *
#read the transmission spectrum
transmission_spectrum = nlread("LiH2.nc",TransmissionSpectrum)[1]
#calculate current
current = transmission_spectrum.current()
#print results
print 'current = ', current
Dropping this script on the Job Manager produced the following error:
+ -------------------------------------------------------------
| NanoLanguageScript execution started
+ -------------------------------------------------------------
Traceback (most recent call last):
File "c:\docume~1\admini~1\locals~1\temp\4130483409169978.py", line 4, in <module>
transmission_spectrum = nlread("LiH2.nc",TransmissionSpectrum)[1]
IndexError: list index out of range
NanoLanguageScript execution failure
+ -------------------------------------------------------------
| NanoLanguageScript execution finished
+ -------------------------------------------------------------
Why did I fail in accordance with the operation of VNL2010.02 tutorial?