From 52c530056127eb0e8e5616e3815f419c3a53d810 Mon Sep 17 00:00:00 2001 From: Martin Paces Date: Wed, 27 Mar 2024 14:59:14 +0100 Subject: [PATCH 1/2] Removing unreachable code. --- eoxmagmod/eoxmagmod/pymm_aux.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/eoxmagmod/eoxmagmod/pymm_aux.h b/eoxmagmod/eoxmagmod/pymm_aux.h index d1a5ead..d12c031 100644 --- a/eoxmagmod/eoxmagmod/pymm_aux.h +++ b/eoxmagmod/eoxmagmod/pymm_aux.h @@ -129,8 +129,6 @@ static PyArrayObject* _get_as_double_array(PyObject *data, int dmin, int dmax, int reqs, const char *label) { return _get_as_array(data, NPY_FLOAT64, dmin, dmax, reqs, label); - PyArray_Descr *dtype = PyArray_DescrFromType(NPY_FLOAT64); - return (PyArrayObject*) PyArray_FromAny(data, dtype, dmin, dmax, reqs, NULL); } From a133ed20d1a2f2601b241709f8b61289d0eeaed6 Mon Sep 17 00:00:00 2001 From: Martin Paces Date: Wed, 27 Mar 2024 15:15:07 +0100 Subject: [PATCH 2/2] Fixing sdist manifest. --- eoxmagmod/MANIFEST.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eoxmagmod/MANIFEST.in b/eoxmagmod/MANIFEST.in index ca860e0..075e691 100644 --- a/eoxmagmod/MANIFEST.in +++ b/eoxmagmod/MANIFEST.in @@ -1,6 +1,6 @@ include MANIFEST.in recursive-exclude eoxmagmod *.pyc *.o recursive-include eoxmagmod *.c *.h -graft eoxmagmod/data -graft eoxmagmod/tests/data -graft eoxmagmod/magnetic_model/tests/data +recursive-include eoxmagmod/data *.txt *.shc *.cof *.COF +recursive-include eoxmagmod/tests/data *.txt *.tsv +recursive-include eoxmagmod/magnetic_models/tests/data *.txt *.cdf