3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 05:58:18 +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:
Olivier Parcollet 2014-01-21 13:30:23 +01:00
parent 1811d53179
commit 1adf10429f
2 changed files with 3 additions and 3 deletions

View File

@ -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() )

View File

@ -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() )