MCPcopy Create free account
hub / github.com/bgrimstad/splinter / __init

Function __init

python/splinter/splinter.py:68–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66# Set expected argument types and return types of all functions
67# For void functions the restype is None
68def __init():
69 # Define types for int* and double*
70 c_int_p = POINTER(c_int)
71 c_double_p = POINTER(c_double)
72 handle_type = c_void_p
73
74 _get_handle().splinter_get_error.restype = c_int
75 _get_handle().splinter_get_error.argtypes = []
76
77 _get_handle().splinter_get_error_string.restype = c_char_p
78 _get_handle().splinter_get_error_string.argtypes = []
79
80
81 _get_handle().splinter_datatable_init.restype = handle_type
82 _get_handle().splinter_datatable_init.argtypes = []
83
84 _get_handle().splinter_datatable_load_init.restype = handle_type
85 _get_handle().splinter_datatable_load_init.argtypes = [c_char_p]
86
87 _get_handle().splinter_datatable_add_samples_row_major.restype = None
88 _get_handle().splinter_datatable_add_samples_row_major.argtypes = [handle_type, c_double_p, c_int, c_int]
89
90 _get_handle().splinter_datatable_get_num_variables.restype = c_int
91 _get_handle().splinter_datatable_get_num_variables.argtypes = [handle_type]
92
93 _get_handle().splinter_datatable_get_num_samples.restype = c_int
94 _get_handle().splinter_datatable_get_num_samples.argtypes = [handle_type]
95
96 _get_handle().splinter_datatable_save.restype = None
97 _get_handle().splinter_datatable_save.argtypes = [handle_type, c_char_p]
98
99 _get_handle().splinter_datatable_delete.restype = None
100 _get_handle().splinter_datatable_delete.argtypes = [handle_type]
101
102
103 _get_handle().splinter_bspline_builder_init.restype = handle_type
104 _get_handle().splinter_bspline_builder_init.argtypes = [handle_type]
105
106 _get_handle().splinter_bspline_builder_set_degree.restype = None
107 _get_handle().splinter_bspline_builder_set_degree.argtypes = [handle_type, c_int_p, c_int]
108
109 _get_handle().splinter_bspline_builder_set_num_basis_functions.restype = None
110 _get_handle().splinter_bspline_builder_set_num_basis_functions.argtypes = [handle_type, c_int_p, c_int]
111
112 _get_handle().splinter_bspline_builder_set_knot_spacing.restype = None
113 _get_handle().splinter_bspline_builder_set_knot_spacing.argtypes = [handle_type, c_int]
114
115 _get_handle().splinter_bspline_builder_set_smoothing.restype = None
116 _get_handle().splinter_bspline_builder_set_smoothing.argtypes = [handle_type, c_int]
117
118 _get_handle().splinter_bspline_builder_set_alpha.restype = None
119 _get_handle().splinter_bspline_builder_set_alpha.argtypes = [handle_type, c_double]
120
121 _get_handle().splinter_bspline_builder_build.restype = handle_type
122 _get_handle().splinter_bspline_builder_build.argtypes = [handle_type]
123
124 _get_handle().splinter_bspline_builder_delete.restype = None
125 _get_handle().splinter_bspline_builder_delete.argtypes = [handle_type]

Callers 1

loadFunction · 0.85

Calls 1

_get_handleFunction · 0.85

Tested by

no test coverage detected