Dear Sir,
I feel the 2nd option will be convenient right now (as all installations are admin protected
). But when I am going to run the script then I am facing few problems. When I am running the script as it is with my transmissionSpectrum (.nc file) then I am facing the following the error:
Traceback (most recent call last):
File "/tmp/4689083423001089.py", line 24, in <module>
print "Energy = ", T.energies()[energy_index]
File "./zipdir/NL/CommonConcepts/PhysicalQuantity.py", line 580, in __getitem__
IndexError: index out of bounds
Now, when I set this index as 0 then I am getting the error as below:
Energy = 0.0 eV
Traceback (most recent call last):
File "/tmp/1889523592497030.py", line 60, in <module>
pylab.contourf(K_A,K_B,T_uu.transpose(),40,cmap=pylab.cm.Spectral)
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/pyplot.py", line 2206, in contourf
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/axes.py", line 7322, in contourf
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/contour.py", line 1106, in __init__
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/contour.py", line 700, in __init__
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/contour.py", line 1119, in _process_args
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/contour.py", line 1166, in _contour_args
File "./build/atkpython/lib/python2.7/site-packages/matplotlib/contour.py", line 1208, in _check_xyz
TypeError: Length of x must be number of columns in z,
and length of y must be number of rows.
What is this energy index? Is this energy index related with the up spin and down spin? Is there any particular choice for that? Above zero of this energy index value, I am always getting the 1st error massage.
In that script I am seeing only one "t" in the line number 22 as
t = T.transmission()[0][energy_index]
So, if I want this in log scale then will it be like
numpy.log(t) = T.transmission()[0][energy_index] only??
or will it be like
t = T.transmission()[0][energy_index]
t = numpy.log(t) ??
As I am getting error without using numpy.log(t) only, so I am not able to go in this steps to check the plot.
Please help.
Thanks
Ramkrishna