From f6da30423444939d561cb5ac4a49ddebe1eb369e Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Thu, 10 Jul 2014 11:56:05 +0200 Subject: [PATCH] Add indicesR/L to gf_desc --- pytriqs/gf/local/gf_desc.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pytriqs/gf/local/gf_desc.py b/pytriqs/gf/local/gf_desc.py index 0f4e148f..f1c458e0 100644 --- a/pytriqs/gf/local/gf_desc.py +++ b/pytriqs/gf/local/gf_desc.py @@ -258,6 +258,14 @@ def make_gf( py_type, c_tag, is_complex_data = True, is_im = False, has_tail = T getter = cfunction(calling_pattern="auto result = self_c.indices()[0]", signature = "std::vector()"), doc ="The indices(L)") + g.add_property(name = "indicesL", + getter = cfunction(calling_pattern="auto result = self_c.indices()[0]", signature = "std::vector()"), + doc ="The indices(L)") + + g.add_property(name = "indicesR", + getter = cfunction(calling_pattern="auto result = self_c.indices()[1]", signature = "std::vector()"), + doc ="The indices(R)") + # backward compatibility g.add_property(name = "N1", getter = cfunction(calling_pattern="int result = get_target_shape(self_c)[0]", signature = "int()"),