| 查看: 930 | 回復(fù): 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() 上述腳本文件運(yùn)行后出錯(cuò)信息如下: 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 | +------------------------------------------------------------------------------+ 誰能幫忙說明一下原因,應(yīng)該怎么修改? |

新蟲 (初入文壇)
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[碩博家園] 深圳大學(xué)碩士招生(2026秋,傳感器方向,僅錄取第一志愿) +4 | xujiaoszu 2026-03-11 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 化學(xué)工程321分求調(diào)劑 +12 | 大米飯! 2026-03-15 | 15/750 |
|
|
[考研] 293求調(diào)劑 +11 | zjl的號(hào) 2026-03-16 | 16/800 |
|
|
[考研] 299求調(diào)劑 +4 | △小透明* 2026-03-17 | 4/200 |
|
|
[考研] 材料工程專碩調(diào)劑 +5 | 204818@lcx 2026-03-17 | 5/250 |
|
|
[考研] 【0856】化學(xué)工程(085602)313 分,本科學(xué)科評(píng)估A類院;瘜W(xué)工程與工藝,誠求調(diào)劑 +7 | 小劉快快上岸 2026-03-11 | 8/400 |
|
|
[考研] 有沒有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考研] 工科材料085601 279求調(diào)劑 +3 | 困于星晨 | 3/150 |
|
|
[考研] 267一志愿南京工業(yè)大學(xué)0817化工求調(diào)劑 +6 | SUICHILD 2026-03-12 | 6/300 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 311求調(diào)劑 +5 | 26研0 2026-03-15 | 5/250 |
|
|
[考研] 中科院材料273求調(diào)劑 +4 | yzydy 2026-03-15 | 4/200 |
|
|
[考研] 一志愿華中師范071000,325求調(diào)劑 +6 | RuitingC 2026-03-12 | 6/300 |
|
|
[考研] 材料與化工 323 英一+數(shù)二+物化,一志愿:哈工大 本人本科雙一流 +4 | 自由的_飛翔 2026-03-13 | 5/250 |
|
|
[考研] 329求調(diào)劑 +3 | miaodesi 2026-03-12 | 4/200 |
|
|
[考研] 求b區(qū)學(xué)校調(diào)劑 +3 | 周56 2026-03-11 | 3/150 |
|
|
[考研] 求調(diào)劑 +7 | 18880831720 2026-03-11 | 7/350 |
|
|
[考研] 328化工專碩求調(diào)劑 +4 | 。,。,。,。i 2026-03-12 | 4/200 |
|
|
[考博] 26讀博 +4 | Rui135246 2026-03-12 | 10/500 |
|
|
[考博] 2026年博士申請(qǐng) +3 | QwQwQW10 2026-03-11 | 3/150 |
|