3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 22:03:43 +01:00

Correction of last correction....

The construction from c++ should *not* be changed...
This commit is contained in:
Olivier Parcollet 2014-01-21 14:29:44 +01:00
parent 1adf10429f
commit 758c07c87c
2 changed files with 2 additions and 2 deletions

View File

@ -33,5 +33,5 @@ cdef class MeshImTime:
# 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(), x.kind() ) x.size(), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[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(), x.kind() ) return MeshReFreq( x.x_min(), x.x_max(), x.size(), {half_bins: 'H', full_bins: 'F', without_last: 'W'}[x.kind()] )