QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: sergio on December 15, 2012, 23:19

Title: AttributeError: 'NoneType' object has no attribute 'electrodeVoltages'
Post by: sergio on December 15, 2012, 23:19
Hi,

When I have used the script "I-V curve and voltage drop" under the "Mini-tutorials" I have encountered the following error:

 Traceback (most recent call last):
  File "I-V_Analysis.py", line 16, in <module>
biases = [float(conf.calculator().electrodeVoltages()[0]-conf.calculator().electrodeVoltages()[1]) for conf in configurations] 
AttributeError: 'NoneType' object has no attribute 'electrodeVoltages'


Thanks for your help,

Title: Re: AttributeError: 'NoneType' object has no attribute 'electrodeVoltages'
Post by: Anders Blom on December 16, 2012, 23:55
This means your "conf" is a configuration without a calculator attached. Perhaps the NetCDF file you read from contains several configurations, and it picks the wrong one in the "nlread" statement.
Title: Re: AttributeError: 'NoneType' object has no attribute 'electrodeVoltages'
Post by: sergio on December 17, 2012, 09:34
Hi,

This means your "conf" is a configuration without a calculator attached.


Without calculator how is possible to get NetCDF file? I have already obtained NetCDF files.


Perhaps the NetCDF file you read from contains several configurations, and it picks the wrong one in the "nlread" statement.


I have just re-checked the NetCDF files. Each one contains only "Device configuration" with object ID "gID000".
Title: Re: AttributeError: 'NoneType' object has no attribute 'electrodeVoltages'
Post by: Anders Blom on December 17, 2012, 13:14
You can save a configuration without a calculator to a NetCDF file, and it can be hard to see if this is the case or not.

One way is to check the size of the NC file; without a calculator it's very small, with a calulator it's at least a few megabytes.
Title: Re: AttributeError: 'NoneType' object has no attribute 'electrodeVoltages'
Post by: sergio on December 17, 2012, 14:24
Thanks for your quick reply,

By the way, was it possible to take a look at the question regarding the spin dependent custom analyzer and differential conductance in

http://quantumwise.com/forum/index.php?topic=2107.0 ?

Thanks,