Dear experts while i am trying to extract the induced potential after executing the Gatescan files, i am getting below error.
Hope u can help ...thank u in advance.
The below is the error,
Traceback (most recent call last):
File "c:\users\user\appdata\local\temp\9465999441891664.py", line 10, in <module>
induced_potential = potential1-potential0
File ".\zipdir\NL\Analysis\GridValues.py", line 162, in __sub__
AttributeError: 'TotalEnergy' object has no attribute 'unit'
NanoLanguageScript execution failure
CODE used is:\
#filename of the data file
filename = 'benzene_set0.nc'
# read electro-static potential with gate potential 0 Volt
potential0 = nlread(filename, object_id = 'gID001')[0]
#read electro-static potential with gate potential 2 Volt
potential1 = nlread(filename, object_id = 'pot2.0 V')[0]
#calculate the induced potential and save it to a file
induced_potential = potential1-potential0
nlsave('InducedPotential_2V.nc',induced_potential)