File: template_main.pyx

package info (click to toggle)
montage 6.0%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 23,120 kB
  • sloc: ansic: 205,662; python: 1,621; makefile: 1,547; javascript: 1,338; sh: 157; xml: 48
file content (23 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import MontagePy._wrappers as _wrappers

{% for func in functions %}

def {{ func.name }}({{ func.arguments_with_defaults|join(', ') }}):
    """
    {{func.summary}}

    Parameters
    ----------
    {% for arg in func.docstring_arguments %}{{ arg.name }} : {{ arg.type}}
        {{ arg.description}}
    {% endfor %}

    Returns
    -------
    {% for arg in func.return_arguments %}{{ arg.name }} : {{ arg.type}}
        {{ arg.description}}
    {% endfor %}
    """
    return _wrappers.{{ func.name }}({{ func.arguments|join(', ') }})

{% endfor %}