From 758c07c87cadd2e00a1c082bae54a06c24cbe8e2 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Tue, 21 Jan 2014 14:29:44 +0100 Subject: [PATCH] Correction of last correction.... The construction from c++ should *not* be changed... --- pytriqs/gf/local/mesh_imtime.pyx | 2 +- pytriqs/gf/local/mesh_refreq.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytriqs/gf/local/mesh_imtime.pyx b/pytriqs/gf/local/mesh_imtime.pyx index 87ea1904..8294f45c 100644 --- a/pytriqs/gf/local/mesh_imtime.pyx +++ b/pytriqs/gf/local/mesh_imtime.pyx @@ -33,5 +33,5 @@ cdef class MeshImTime: # C -> Python cdef inline make_MeshImTime ( mesh_imtime x) : return MeshImTime( x.domain().beta, 'F' if x.domain().statistic==Fermion else 'B', - x.size(), x.kind() ) + x.size(), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[x.kind()] ) diff --git a/pytriqs/gf/local/mesh_refreq.pyx b/pytriqs/gf/local/mesh_refreq.pyx index ec6250b3..9cd8cc30 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(), x.kind() ) + return MeshReFreq( x.x_min(), x.x_max(), x.size(), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[x.kind()] )