mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 11:13:46 +01:00
Added accessor positive only to MeshImFreq
This commit is contained in:
parent
78cbbaa52f
commit
91dc34a869
@ -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() :
|
||||
|
Loading…
Reference in New Issue
Block a user