3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/test/pytriqs/wrap_test/test_g_desc.py

18 lines
762 B
Python
Raw Normal View History

2014-05-21 23:01:27 +02:00
from wrap_generator import *
# The module
module = module_(full_name = "pytriqs.wrap_test.test_g", doc = " Doc of my_module ")
2014-05-30 23:08:32 +02:00
module.add_include("<triqs/../test/pytriqs/wrap_test/g.hpp>")
2014-05-21 23:01:27 +02:00
module.add_include("<pytriqs/converters/gf.hpp>")
module.add_function (name = "make_bgf", signature = "block_gf_view<imfreq> (double a)", doc = "DOC of print_a")
module.add_function (name = "pass_bgf", signature = "void (block_gf_view<imfreq> g) ", doc = "DOC of print_a")
module.add_function (name = "make_sgf", signature = "gf_view<imfreq,scalar_valued> (double a)", doc = "DOC of print_a")
module.add_function (name = "pass_sgf", signature = "void (gf_view<imfreq,scalar_valued> g)", doc = "DOC of print_a")
2014-05-21 23:01:27 +02:00
if __name__ == '__main__' :
module.generate_code()
2014-05-21 23:01:27 +02:00