Conversation
Codecov Report
@@ Coverage Diff @@
## ign-math6 #220 +/- ##
==========================================
Coverage 99.21% 99.21%
==========================================
Files 65 65
Lines 6089 6089
==========================================
Hits 6041 6041
Misses 48 48
Continue to review full report at Codecov.
|
474070f to
8456acf
Compare
Signed-off-by: Marcos Wagner <wagnermarcos@ekumenlabs.com>
Signed-off-by: Marcos Wagner <wagnermarcos@ekumenlabs.com>
Signed-off-by: Marcos Wagner <wagnermarcos@ekumenlabs.com>
8456acf to
31be8f8
Compare
|
It was necessary to add the Click to see outputThis issue is not happening when compiling with SWIG 4.0, but in order to support SWIG 3.0, and as we couldn't find a fix for this at the moment, we decided to suppress it. |
francocipollone
left a comment
There was a problem hiding this comment.
LGTM, just a couple of nits
| %include Line2.i | ||
| %include Line3.i | ||
| %include SignalStats.i | ||
| %include Temperature.i |
There was a problem hiding this comment.
nit: can these be alphabetized or do they need to be ordered by dependencies?
There was a problem hiding this comment.
do they need to be ordered by dependencies?
That's correct
Signed-off-by: Marcos Wagner <wagnermarcos@ekumenlabs.com>
francocipollone
left a comment
There was a problem hiding this comment.
LGTM!
@scpeters @chapulina It is ready for another review!
Signed-off-by: Marcos Wagner <wagnermarcos@ekumenlabs.com>
🎉 New feature
Goes on top of #216.
Related to #101 #210
Summary
Adds
Pythoninterface for three math classes:Line2,SignalStats,Temperature. For each class a python test has been created.Related issues and notes
Line2
ign-mathwas not working properly as the call to equal() was receiving(double, int, double)argument types, having a 0 with static cast passed as second argument, but always having doubles for the first and third arguments.. For this, a 0. is now being passed.=in python for the tests, the copy constructor was used.operator[]functionality in python, the class had to be extended in the interface file (.i file) adding__getitem__(), calling theoperator[]inside.__str__(), calling theoperator<<inside.Temperature
__str__(), calling theoperator<<inside.friend Temperature operator+(double _t, const Temperature &_temp)and similar operators haven't been implemented in SWIG because no simple implementation was found. So it won't be possible to dotemp1 = 20.0 + temp2.SignalStats
This contains various classes defined in the same interface file.
SignalStats class
SignalStatistic class and its inherited classes
Checklist
codecheckpassed (See contributing)