Skip to content

Provide signatures to some C-level classes and methods. #15009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/_contour_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static PyObject* PyQuadContourGenerator_new(PyTypeObject* type, PyObject* args,

const char* PyQuadContourGenerator_init__doc__ =
"QuadContourGenerator(x, y, z, mask, corner_mask, chunk_size)\n"
"\n"
"--\n\n"
"Create a new C++ QuadContourGenerator object\n";

static int PyQuadContourGenerator_init(PyQuadContourGenerator* self, PyObject* args, PyObject* kwds)
Expand Down Expand Up @@ -78,7 +78,7 @@ static void PyQuadContourGenerator_dealloc(PyQuadContourGenerator* self)

const char* PyQuadContourGenerator_create_contour__doc__ =
"create_contour(level)\n"
"\n"
"--\n\n"
"Create and return a non-filled contour.";

static PyObject* PyQuadContourGenerator_create_contour(PyQuadContourGenerator* self, PyObject* args, PyObject* kwds)
Expand All @@ -95,7 +95,7 @@ static PyObject* PyQuadContourGenerator_create_contour(PyQuadContourGenerator* s

const char* PyQuadContourGenerator_create_filled_contour__doc__ =
"create_filled_contour(lower_level, upper_level)\n"
"\n"
"--\n\n"
"Create and return a filled contour";

static PyObject* PyQuadContourGenerator_create_filled_contour(PyQuadContourGenerator* self, PyObject* args, PyObject* kwds)
Expand Down
14 changes: 7 additions & 7 deletions src/tri/_tri_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static PyObject* PyTriangulation_new(PyTypeObject* type, PyObject* args, PyObjec

const char* PyTriangulation_init__doc__ =
"Triangulation(x, y, triangles, mask, edges, neighbors)\n"
"\n"
"--\n\n"
"Create a new C++ Triangulation object\n"
"This should not be called directly, instead use the python class\n"
"matplotlib.tri.Triangulation instead.\n";
Expand Down Expand Up @@ -100,7 +100,7 @@ static void PyTriangulation_dealloc(PyTriangulation* self)

const char* PyTriangulation_calculate_plane_coefficients__doc__ =
"calculate_plane_coefficients(z, plane_coefficients)\n"
"\n"
"--\n\n"
"Calculate plane equation coefficients for all unmasked triangles";

static PyObject* PyTriangulation_calculate_plane_coefficients(PyTriangulation* self, PyObject* args, PyObject* kwds)
Expand All @@ -125,7 +125,7 @@ static PyObject* PyTriangulation_calculate_plane_coefficients(PyTriangulation* s

const char* PyTriangulation_get_edges__doc__ =
"get_edges()\n"
"\n"
"--\n\n"
"Return edges array";

static PyObject* PyTriangulation_get_edges(PyTriangulation* self, PyObject* args, PyObject* kwds)
Expand All @@ -142,7 +142,7 @@ static PyObject* PyTriangulation_get_edges(PyTriangulation* self, PyObject* args

const char* PyTriangulation_get_neighbors__doc__ =
"get_neighbors()\n"
"\n"
"--\n\n"
"Return neighbors array";

static PyObject* PyTriangulation_get_neighbors(PyTriangulation* self, PyObject* args, PyObject* kwds)
Expand All @@ -159,7 +159,7 @@ static PyObject* PyTriangulation_get_neighbors(PyTriangulation* self, PyObject*

const char* PyTriangulation_set_mask__doc__ =
"set_mask(mask)\n"
"\n"
"--\n\n"
"Set or clear the mask array.";

static PyObject* PyTriangulation_set_mask(PyTriangulation* self, PyObject* args, PyObject* kwds)
Expand Down Expand Up @@ -234,7 +234,7 @@ static PyObject* PyTriContourGenerator_new(PyTypeObject* type, PyObject* args, P

const char* PyTriContourGenerator_init__doc__ =
"TriContourGenerator(triangulation, z)\n"
"\n"
"--\n\n"
"Create a new C++ TriContourGenerator object\n"
"This should not be called directly, instead use the functions\n"
"matplotlib.axes.tricontour and tricontourf instead.\n";
Expand Down Expand Up @@ -369,7 +369,7 @@ static PyObject* PyTrapezoidMapTriFinder_new(PyTypeObject* type, PyObject* args,

const char* PyTrapezoidMapTriFinder_init__doc__ =
"TrapezoidMapTriFinder(triangulation)\n"
"\n"
"--\n\n"
"Create a new C++ TrapezoidMapTriFinder object\n"
"This should not be called directly, instead use the python class\n"
"matplotlib.tri.TrapezoidMapTriFinder instead.\n";
Expand Down