| 查看: 932 | 回复: 1 | |||
[交流]
【求助】求助“ATK I-V特征曲线” 已有1人参与
|
|
脚本文件 #make list of relevant temperatures temperature_list=numpy.linspace(0,2000,21)*Kelvin #make list of relevant gate voltages voltage_list=numpy.linspace(0.0,2.0,9)*Volt #make list to hold the current calculations current_list=numpy.zeros(len(voltage_list)*len(temperature_list)) current_list=current_list.reshape(len(voltage_list),len(temperature_list)) #specify the filename for the netcdf data file filename="ivscan-6-6.nc" #loop through the gate voltages for n in range(len(voltage_list)): transmission_spectrum=nlread(filename, object_id="trans"+str(voltage_list[n]))[0] #loop through the temperature list for i in range(len(temperature_list)): current_list[n,i]=transmission_spectrum.current( electrode_temperatures=(temperature_list,temperature_list)) #plot the current as function of voltage import pylab pylab.figure() # make curve for each temperature for i in range(len(temperature_list)): pylab.plot(voltage_list,current_list[:,i]) pylab.xlabel("Bias (V)" ![]() pylab.ylabel("Current (A)" ![]() pylab.show() 上述脚本文件运行后出错信息如下: Atomistix ToolKit 10.8.0 | | | +------------------------------------------------------------------------------+ Traceback (most recent call last): File "c:\docume~1\medea~1.pc-\locals~1\temp\9711722844208417.py", line 14, in transmission_spectrum=nlread(filename, object_id="trans"+str(voltage_list[n]))[0] IndexError: list index out of range NanoLanguageScript execution failure +------------------------------------------------------------------------------+ | NanoLanguageScript execution finished | +------------------------------------------------------------------------------+ 谁能帮忙说明一下原因,应该怎么修改? |
» 猜你喜欢
311求调剂
已经有4人回复
304求调剂
已经有4人回复
354求调剂
已经有7人回复
321求调剂
已经有3人回复
274求调剂
已经有5人回复
281求调剂(0805)
已经有15人回复
085600材料与化工调剂 324分
已经有8人回复
能源材料化学课题组招收硕士研究生8-10名
已经有10人回复
267一志愿南京工业大学0817化工求调剂
已经有8人回复
328求调剂,英语六级551,有科研经历
已经有10人回复
» 本主题相关价值贴推荐,对您同样有帮助:
【分享】量化软件 - 输运相关 (zz)
已经有13人回复

2楼2019-05-07 18:20:34














回复此楼