| 查看: 948 | 回复: 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 | +------------------------------------------------------------------------------+ 谁能帮忙说明一下原因,应该怎么修改? |
» 猜你喜欢
有没有接收比较快的sci期刊呀,最好在一个月之内的,研三孩子求毕业
已经有4人回复
294求调剂
已经有3人回复
恳请有学校收留
已经有8人回复
一志愿华中农业071010,320求调剂
已经有17人回复
收到复试调剂但是去不了
已经有5人回复
297,工科调剂?
已经有4人回复
291求调剂
已经有9人回复
300求调剂
已经有11人回复
22专硕求调剂
已经有12人回复
材料相关专业344求调剂双非工科学校或课题组
已经有25人回复
» 本主题相关价值贴推荐,对您同样有帮助:
【分享】量化软件 - 输运相关 (zz)
已经有13人回复

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














回复此楼