mirror of
https://github.com/triqs/dft_tools
synced 2024-12-24 13:23:37 +01:00
Add indicesR/L to gf_desc
This commit is contained in:
parent
a6e1528730
commit
f6da304234
@ -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()"),
|
||||
|
Loading…
Reference in New Issue
Block a user