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

Add indicesR/L to gf_desc

This commit is contained in:
Michel Ferrero 2014-07-10 11:56:05 +02:00
parent a6e1528730
commit f6da304234

View File

@ -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<std::string>()"),
doc ="The indices(L)")
g.add_property(name = "indicesL",
getter = cfunction(calling_pattern="auto result = self_c.indices()[0]", signature = "std::vector<std::string>()"),
doc ="The indices(L)")
g.add_property(name = "indicesR",
getter = cfunction(calling_pattern="auto result = self_c.indices()[1]", signature = "std::vector<std::string>()"),
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()"),