File: argusPython.i

package info (click to toggle)
argus-clients 1%3A5.0.2%2Bgit20250321.41f65e2-2
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 45,848 kB
  • sloc: ansic: 175,393; perl: 4,405; sh: 4,064; makefile: 2,520; lex: 517; yacc: 433; python: 62
file content (30 lines) | stat: -rw-r--r-- 784 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%module argusPython

%include "typemaps.i"
%apply int *OUTPUT {int *start, int *end};

%{
#define SWIG_FILE_WITH_INIT
#include "argusPython.h"
int argusInit (void);
int readArgusData (char *datafile);
int setArgusSchema (char *titles);
int setArgusBaseline (char *baseline);
PyObject *argus_critic (PyObject *y_true, PyObject *y_pred);
PyObject *argus_match (PyObject *y_true);
int argustime (char *time_string, int *start, int *end);
%}

%include "numpy.i"

%init %{
    import_array();
%}

int argusInit (void);
int readArgusData (char *datafile);
int setArgusSchema (char *titles);
int setArgusBaseline (char *baseline);
PyObject *argus_critic (PyObject *y_true, PyObject *y_pred);
PyObject *argus_match (PyObject *y_true);
int argustime (char *time_string, int *start, int *end);