3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00

Added accessor positive only to MeshImFreq

This commit is contained in:
tayral 2014-03-25 22:42:50 +00:00
parent 78cbbaa52f
commit 91dc34a869

View File

@ -13,6 +13,9 @@ cdef class MeshImFreq:
property statistic :
def __get__(self): return 'F' if self._c.domain().statistic==Fermion else 'B'
property positive_only :
def __get__(self): return self._c.positive_only()
def __iter__(self) : # I use the C++ generator !
cdef mesh_pt_generator[mesh_imfreq ] g = mesh_pt_generator[mesh_imfreq ](&self._c)
while not g.at_end() :