Skip to content

BLD adding some tests & ENH new functions in wrapper#165

Open
Bidibulke wants to merge 6 commits intolava:masterfrom
Bidibulke:master
Open

BLD adding some tests & ENH new functions in wrapper#165
Bidibulke wants to merge 6 commits intolava:masterfrom
Bidibulke:master

Conversation

@Bidibulke
Copy link
Copy Markdown

TST

  • adding some unit tests using Catch2 framework
  • 6 test cases with 91 assertions.
  • normally there is a test for each function in matplotlibcpp.h
  • class Plot is not tested

MISC

According to numpy documentation:

  • BLD change related to building and installing (examples, module, …)
  • ENH enhancement
  • TST addition or modification of tests
  • ...

TST
* adding some unit tests using Catch2 framework
* 6 test cases with 91 assertions.
* normally there is a test for each function in matplotlibcpp.h
* `class Plot` is not tested

MISC

According to numpy documentation:
* BLD change related to building and installing (examples, module, …)
* ENH enhancement
* TST addition or modification of tests
* ...
@Bidibulke
Copy link
Copy Markdown
Author

It's the first step of bigger modifications. In a further pull request, I will modify matplotlibcpp.h to introduce use of variadic templates arguments in some existing functions to decrease the number of functions that have to be maintain, and also to ease the calls of matplotlib functions (in a more pythonic ways for kwargs).
Then it will be possible to pass more complex objects (as vector or other C++ objects, which have a Python version) as arguments of matplotlibcpp functions.

Bidibulke and others added 5 commits March 26, 2020 16:39
commit 9047863bb0c1a34bc6473c2dadee720073db631e
Author: Claire Guilbaud <claire.guilbaud@cea.fr>
Date:   Thu Mar 26 15:46:34 2020 +0100

    @enh figure with variadic template args

commit a8a3dd018c14a5e5c98b084f566865ba936c4fec
Author: Claire Guilbaud <claire.guilbaud@cea.fr>
Date:   Thu Mar 26 14:55:36 2020 +0100

    @enh close

commit 6440609657de0f47b6fd4c1a8c213704f2810a4f
Author: Claire Guilbaud <claire.guilbaud@cea.fr>
Date:   Thu Mar 26 13:41:18 2020 +0100

    @enh generic form for scatter
In order to avoid adding other declaration function for the same functionnality with other arguments, I had the possibility to pass extra-arguments in a tuple of variadic templates.

This enhancement could also be use to pass C++ objects such as vector, double
also translate french comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant