mirror of
https://github.com/triqs/dft_tools
synced 2025-01-12 14:08:24 +01:00
- forgot to correct the call to self.kind (now returning a char, not an int), in previous commit.
This commit is contained in:
parent
1811d53179
commit
1adf10429f
@ -28,10 +28,10 @@ cdef class MeshImTime:
|
|||||||
return self._c == other._c
|
return self._c == other._c
|
||||||
|
|
||||||
def __reduce__(self):
|
def __reduce__(self):
|
||||||
return self.__class__, (self.beta, self.statistic, len(self), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[self.kind])
|
return self.__class__, (self.beta, self.statistic, len(self), self.kind)
|
||||||
|
|
||||||
# C -> Python
|
# C -> Python
|
||||||
cdef inline make_MeshImTime ( mesh_imtime x) :
|
cdef inline make_MeshImTime ( mesh_imtime x) :
|
||||||
return MeshImTime( x.domain().beta, 'F' if x.domain().statistic==Fermion else 'B',
|
return MeshImTime( x.domain().beta, 'F' if x.domain().statistic==Fermion else 'B',
|
||||||
x.size(), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[x.kind()] )
|
x.size(), x.kind() )
|
||||||
|
|
||||||
|
@ -30,5 +30,5 @@ cdef class MeshReFreq:
|
|||||||
|
|
||||||
# C -> Python
|
# C -> Python
|
||||||
cdef inline make_MeshReFreq ( mesh_refreq x) :
|
cdef inline make_MeshReFreq ( mesh_refreq x) :
|
||||||
return MeshReFreq( x.x_min(), x.x_max(), x.size(), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[x.kind()] )
|
return MeshReFreq( x.x_min(), x.x_max(), x.size(), x.kind() )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user