Closed mbarbry closed 5 years ago
Could you try and add this:
print(sisl.get_sile('TBT_{:.1f}/siesta.TBT.nc'.format(v)).elecs)
print(sisl.get_sile('TBT_{:.1f}/siesta.TBT.nc'.format(v))._elec(0))
print(sisl.get_sile('TBT_{:.1f}/siesta.TBT.nc'.format(v))._elec(1))
and give me the output?
The prints seem to give the expected values
print(sisl.get_sile('TBT_{:.1f}/siesta.TBT.nc'.format(v)).elecs)
['Left', 'Right']
print(sisl.get_sile('TBT_{:.1f}/siesta.TBT.nc'.format(v))._elec(0))
Left
print(sisl.get_sile('TBT_{:.1f}/siesta.TBT.nc'.format(v))._elec(1))
Right
But I still get the same error when calculating the current.
Could you print print(sisl.__version__)
Also do you have a full stacktrace of the error?
the sisl version I'm using is 0.9.4
the full error is
KeyError Traceback (most recent call last)
I installed sisl using pip
Ah, yes, this is because the latest sisl version requires the coming 4.1-b4 which adds this information. So nothing is wrong ;)
I am gonna close this issue. Thanks for reporting.
Works fine with the development version of Siesta, thanks!
Hi,
I'm new in sisl, tbtrans and transiesta. I'm following the tutorials from https://github.com/zerothi/ts-tbt-sisl-tutorial/
In the tutorial 9, everythings works fine until the end to get the current.
I get the following error,
effectively, printing the dictionary
g
, I get,the key
Right
is clearly missing. Do you have an idea of what I did wrong?