mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 22:03:43 +01:00
6934692327
- converted as 1x1 matrix view. - add a small test
19 lines
902 B
Python
19 lines
902 B
Python
from wrap_generator import *
|
|
|
|
# The module
|
|
module = module_(full_name = "pytriqs.wrap_test.test_g", doc = " Doc of my_module ")
|
|
module.add_include("<triqs/../pytriqs/wrap_test/g.hpp>")
|
|
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")
|
|
|
|
|
|
if __name__ == '__main__' :
|
|
module.generate_code(mako_template = sys.argv[1], wrap_file = sys.argv[2])
|
|
module.generate_py_converter_header(mako_template = sys.argv[3], wrap_file = sys.argv[4])
|
|
|