From 1adf10429ff1138edde9945f345246bcb55a6af0 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Tue, 21 Jan 2014 13:30:23 +0100 Subject: [PATCH] Fix #52 : Correct 6022015 - forgot to correct the call to self.kind (now returning a char, not an int), in previous commit. --- pytriqs/gf/local/mesh_imtime.pyx | 4 ++-- pytriqs/gf/local/mesh_refreq.pyx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytriqs/gf/local/mesh_imtime.pyx b/pytriqs/gf/local/mesh_imtime.pyx index 584cc4b1..87ea1904 100644 --- a/pytriqs/gf/local/mesh_imtime.pyx +++ b/pytriqs/gf/local/mesh_imtime.pyx @@ -28,10 +28,10 @@ cdef class MeshImTime: return self._c == other._c 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 cdef inline make_MeshImTime ( mesh_imtime x) : 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() ) diff --git a/pytriqs/gf/local/mesh_refreq.pyx b/pytriqs/gf/local/mesh_refreq.pyx index 9cd8cc30..ec6250b3 100644 --- a/pytriqs/gf/local/mesh_refreq.pyx +++ b/pytriqs/gf/local/mesh_refreq.pyx @@ -30,5 +30,5 @@ cdef class MeshReFreq: # C -> Python 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() )