| 查看: 946 | 回复: 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 | +------------------------------------------------------------------------------+ 谁能帮忙说明一下原因,应该怎么修改? |
» 猜你喜欢
291求调剂
已经有7人回复
300求调剂
已经有8人回复
求调剂推荐
已经有7人回复
289 分105500药学专硕求调剂(找B区学校)
已经有4人回复
0854求调剂
已经有13人回复
初试324 中药学 一志愿天中医 求调剂
已经有3人回复
药学求调剂
已经有14人回复
327求调剂
已经有27人回复
急需调剂
已经有5人回复
271求调剂
已经有33人回复
» 本主题相关价值贴推荐,对您同样有帮助:
【分享】量化软件 - 输运相关 (zz)
已经有13人回复

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














回复此楼
5