3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 06:14:14 +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 : property statistic :
def __get__(self): return 'F' if self._c.domain().statistic==Fermion else 'B' 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 ! def __iter__(self) : # I use the C++ generator !
cdef mesh_pt_generator[mesh_imfreq ] g = mesh_pt_generator[mesh_imfreq ](&self._c) cdef mesh_pt_generator[mesh_imfreq ] g = mesh_pt_generator[mesh_imfreq ](&self._c)
while not g.at_end() : while not g.at_end() :