diff --git a/pytriqs/gf/local/mesh_imtime.pyx b/pytriqs/gf/local/mesh_imtime.pyx index 4606e325..584cc4b1 100644 --- a/pytriqs/gf/local/mesh_imtime.pyx +++ b/pytriqs/gf/local/mesh_imtime.pyx @@ -12,7 +12,7 @@ cdef class MeshImTime: property kind : """Inverse temperature""" - def __get__(self): return self._c.kind() + def __get__(self): return {half_bins: 'H', full_bins: 'F', without_last: 'W'}[self._c.kind()] property statistic : def __get__(self): return 'F' if self._c.domain().statistic==Fermion else 'B' diff --git a/pytriqs/gf/local/mesh_refreq.pyx b/pytriqs/gf/local/mesh_refreq.pyx index 589bcb32..9cd8cc30 100644 --- a/pytriqs/gf/local/mesh_refreq.pyx +++ b/pytriqs/gf/local/mesh_refreq.pyx @@ -11,7 +11,7 @@ cdef class MeshReFreq: def __get__(self): return self._c.x_max() property kind: - def __get__(self): return self._c.kind() + def __get__(self): return {half_bins: 'H', full_bins: 'F', without_last: 'W'}[self._c.kind()] def __len__ (self) : return self._c.size() diff --git a/pytriqs/gf/local/mesh_retime.pyx b/pytriqs/gf/local/mesh_retime.pyx index 0ceffbff..5789d4cf 100644 --- a/pytriqs/gf/local/mesh_retime.pyx +++ b/pytriqs/gf/local/mesh_retime.pyx @@ -11,7 +11,7 @@ cdef class MeshReTime: def __get__(self): return self._c.x_max() property kind: - def __get__(self): return self._c.kind() + def __get__(self): return {half_bins: 'H', full_bins: 'F', without_last: 'W'}[self._c.kind()] def __len__ (self) : return self._c.size() diff --git a/pytriqs/gf/local/refreq.pxd b/pytriqs/gf/local/refreq.pxd index 016bf22c..f237a292 100644 --- a/pytriqs/gf/local/refreq.pxd +++ b/pytriqs/gf/local/refreq.pxd @@ -10,7 +10,7 @@ cdef extern from "triqs/gfs/refreq.hpp" namespace "triqs::gfs" : double x_min() double x_max() long size() - double kind() + long kind() bint operator ==( mesh_refreq &) cdef mesh_refreq make_mesh_refreq "triqs::gfs::gf_mesh" (double omega_min, double omega_max, size_t n_freq, mesh_enum mk) diff --git a/pytriqs/gf/local/retime.pxd b/pytriqs/gf/local/retime.pxd index 2b696964..a271b1f6 100644 --- a/pytriqs/gf/local/retime.pxd +++ b/pytriqs/gf/local/retime.pxd @@ -10,7 +10,7 @@ cdef extern from "triqs/gfs/retime.hpp" namespace "triqs::gfs" : double x_min() double x_max() long size() - double kind() + long kind() bint operator ==( mesh_retime &) cdef mesh_retime make_mesh_retime "triqs::gfs::gf_mesh" (double t_min, double t_max, size_t n_freq, mesh_enum mk)