mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 11:43:47 +01:00
173a97d07c
There was a bug in the transpose of the indices. Added a test.
10 lines
307 B
Python
10 lines
307 B
Python
from pytriqs.gf.local import *
|
|
|
|
g = GfImFreq(indicesR = range(5), indicesL = range(3), beta = 40, n_points = 1000)
|
|
gt = g.transpose()
|
|
|
|
print "Old data shape = ", g.data.shape
|
|
print "Old tail shape = ", g.tail.data.shape
|
|
print "New data shape = ", gt.data.shape
|
|
print "New tail shape = ", gt.tail.data.shape
|