| 2 | 1/1 | 返回列表 |
| 查看: 931 | 回復(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 | +------------------------------------------------------------------------------+ 誰(shuí)能幫忙說(shuō)明一下原因,應(yīng)該怎么修改? |

新蟲 (初入文壇)
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0854可跨調(diào)劑,一作一項(xiàng)核心論文五項(xiàng)專利,省、國(guó)級(jí)證書40+數(shù)一英一287 +4 | 小李0854 2026-03-16 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 290求調(diào)劑 +10 | ADT 2026-03-11 | 10/500 |
|
|
[考研] 268求調(diào)劑 +6 | 簡(jiǎn)單點(diǎn)0 2026-03-17 | 6/300 |
|
|
[考研] 268求調(diào)劑 +7 | 好運(yùn)連綿不絕 2026-03-12 | 8/400 |
|
|
[考研] 301求調(diào)劑 +4 | A_JiXing 2026-03-16 | 4/200 |
|
|
[考研] 材料工程專碩調(diào)劑 +5 | 204818@lcx 2026-03-17 | 5/250 |
|
|
[考研] 293求調(diào)劑 +6 | 世界首富 2026-03-11 | 6/300 |
|
|
[考研] 有沒(méi)有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考研] 機(jī)械專碩325,尋找調(diào)劑院校 +3 | y9999 2026-03-15 | 5/250 |
|
|
[基金申請(qǐng)]
今年的國(guó)基金是打分制嗎?
50+3
|
zhanghaozhu 2026-03-14 | 3/150 |
|
|
[考研] 321求調(diào)劑 +5 | 大米飯! 2026-03-15 | 5/250 |
|
|
[考研] 283求調(diào)劑 +10 | 小樓。 2026-03-12 | 14/700 |
|
|
[考研] 288求調(diào)劑 +4 | 奇點(diǎn)0314 2026-03-14 | 4/200 |
|
|
[考研] 080500,材料學(xué)碩302分求調(diào)劑學(xué)校 +4 | 初識(shí)可樂(lè) 2026-03-14 | 5/250 |
|
|
[考研] 297一志愿上交085600求調(diào)劑 +5 | 指尖八千里 2026-03-14 | 5/250 |
|
|
[基金申請(qǐng)] 現(xiàn)在如何回避去年的某一個(gè)專家,不知道名字 +3 | zk200107 2026-03-12 | 6/300 |
|
|
[考研] 求材料調(diào)劑 +5 | 隔壁陳先生 2026-03-12 | 5/250 |
|
|
[考研] (081700)化學(xué)工程與技術(shù)-298分求調(diào)劑 +12 | 11啦啦啦 2026-03-11 | 35/1750 |
|
|
[考研] 一志愿211化學(xué)學(xué)碩310分求調(diào)劑 +8 | 努力奮斗112 2026-03-12 | 9/450 |
|
|
[考研] 321求調(diào)劑(食品/專碩) +3 | xc321 2026-03-12 | 6/300 |
|