Skip to content
Snippets Groups Projects
Commit f367ea0e authored by Blaß, Michael's avatar Blaß, Michael :speech_balloon:
Browse files

Changed name

parent 3bdfbe54
Branches
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ hmm_poisson_viterbi (PyObject *self, PyObject *args) ...@@ -115,7 +115,7 @@ hmm_poisson_viterbi (PyObject *self, PyObject *args)
static PyMethodDef static PyMethodDef
HMM_Methods[] = { CA_Methods[] = {
{"hmm_poisson_fit_em", hmm_poisson_fit_em, METH_VARARGS, {"hmm_poisson_fit_em", hmm_poisson_fit_em, METH_VARARGS,
"hmm_poisson_fit_em (x, m, _lambda, _gamma, _delta, max_iter, tol)"}, "hmm_poisson_fit_em (x, m, _lambda, _gamma, _delta, max_iter, tol)"},
...@@ -132,18 +132,18 @@ HMM_Methods[] = { ...@@ -132,18 +132,18 @@ HMM_Methods[] = {
}; };
static struct PyModuleDef static struct PyModuleDef
hmm_module = { chains_addiction_module = {
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"hmm", "chains_addiction",
NULL, NULL,
-1, -1,
HMM_Methods CA_Methods
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_hmm(void) PyInit_chains_addiction (void)
{ {
import_array (); import_array ();
return PyModule_Create (&hmm_module); return PyModule_Create (&chains_addiction_module);
} }
...@@ -3,12 +3,12 @@ TEST_INCLUDE = -Iinclude/ -Itests/src/ ...@@ -3,12 +3,12 @@ TEST_INCLUDE = -Iinclude/ -Itests/src/
CFLAGS = -Wall -Wsign-compare CFLAGS = -Wall -Wsign-compare
MACROS = -DDebug -Dwarn_nan MACROS = -DDebug -Dwarn_nan
hmm.cpython-37m-darwin.so: hmm/*.c include/*.h chains_addiction.cpython-37m-darwin.so: hmm/*.c include/*.h
python3 setup.py build_ext --inplace pip3 install .
clean: clean:
rm -rf build/ rm -rf build/
rm hmm.cpython-37m-darwin.so rm chains_addiction.cpython-37m-darwin.so
test: test:
python3 test_hmm.py python3 test_hmm.py
......
...@@ -10,7 +10,7 @@ setup( ...@@ -10,7 +10,7 @@ setup(
include_dirs = get_numpy_include_dirs(), include_dirs = get_numpy_include_dirs(),
ext_modules = [ ext_modules = [
Extension( Extension(
'hmm', 'chains_addiction',
sources = [ 'hmm/stats.c', sources = [ 'hmm/stats.c',
'hmm/fwbw.c', 'hmm/fwbw.c',
'hmm/em.c', 'hmm/em.c',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment