Thank you sir.... that problem is solved.....
/
But, I'am facing another issue while running the following script. Can you please tell me that how can I get rid of this error ??
_____________
Script:
#list of relevant temperatures
temperature_list=numpy.linspace(0,2000,21)*Kelvin
#list of relevant gate voltages
gate_voltage_list=numpy.linspace(-2.0,2.0,17)*Volt
#list to hold the conductance calculations
conductance_list=numpy.zeros(len(gate_voltage_list)*len(temperature_list))
conductance_list=conductance_list.reshape(len(gate_voltage_list),
len(temperature_list))
#the reference transmission spectrum from the netcdf data file
gate_potential_ref = 0.*Volt
transmission_spectrum = nlread("/home/dipankar/Desktop/Exapmle_456/gatescan-6-6.nc",
object_id="trans"+str(gate_potential_ref))[0]
#loop through the gate voltages
for n in range(len(gate_voltage_list)):
#loop through the temperature list
for i in range(len(temperature_list)):
conductance_list[n,i]=transmission_spectrum.conductance(
electrode_temperatures=(temperature_list
,temperature_list),
electrode_voltages=(gate_voltage_list[n]-gate_potential_ref,
gate_voltage_list[n]-gate_potential_ref ) )
.......................
................
________________________
Error:
NanoLanguageScript execution started |
+------------------------------------------------------------------------------+
+------------------------------------------------------------------------------+
| |
| Atomistix ToolKit 12.8.2 [Build c2e18ea] |
| |
+------------------------------------------------------------------------------+
Traceback (most recent call last):
File "/tmp/6519725838618169.py", line 15, in <module>
object_id="trans"+str(gate_potential_ref))[0]
IndexError: list index out of range
+------------------------------------------------------------------------------+
| NanoLanguageScript execution finished |
+------------------------------------------------------------------------------+