[Python] add Python bindings for tuplevector
This MR add python bindings for TupleVector
.
To get it nicely working i had to access the underlying std::tuple
type, from my registerTupleVector
function. Therefore, I had to add it as a friend
, which I'm not so happy about. @simon.praetorius You also had a similar MR !1357 (closed). @andreas.dedner again can you have a look?
@christi I decided to first add the bindings here, which can then be reused in dune-istl
hopefully.
Merge request reports
Activity
assigned to @alexander.mueller
- Resolved by Alexander Müller
- Resolved by Alexander Müller
I don't like that this requires to modify the C++ class. Can you elaborate why exactly you need the fried declaration? Since
std::tuple
is deliberately a public base class, everything should be available. The only thing thatTupleVector
does is adding syntactic candy.
- Resolved by Alexander Müller
- Resolved by Alexander Müller
- Resolved by Alexander Müller
- Resolved by Alexander Müller
- Resolved by Alexander Müller
So basically I think this can be considered mergeable. What do you think @carsten.graeser @andreas.dedner ?
Fine with me to merge this. As I already said, I don't know much about this class or how it is supposed to be used on the Python side, so can't really say if this is the right way to export it. Sometimes that will only become clear through usage in Python and then the bindings might need to be revisited.
added 23 commits
-
10c1ad68...7eea319e - 22 commits from branch
master
- b36ed487 - add Python bindings for tuplevector
-
10c1ad68...7eea319e - 22 commits from branch
added 28 commits
-
b36ed487...53305824 - 27 commits from branch
master
- 1fde3ab7 - add Python bindings for tuplevector
-
b36ed487...53305824 - 27 commits from branch
- Resolved by Alexander Müller
Is there anything I can do to get this merged? The downstream test are not started. Can anybody start them?
- Resolved by Alexander Müller
98 98 99 99 } // namespace Dune 100 100 101 namespace std @carsten.graeser happy for this to be merge now?
added 4 commits
-
252a3b4e...847a62c8 - 3 commits from branch
master
- 3c31e883 - add Python bindings for tuplevector
-
252a3b4e...847a62c8 - 3 commits from branch
added 3 commits
-
3c31e883...60580459 - 2 commits from branch
master
- ced1c1ef - add Python bindings for tuplevector
-
3c31e883...60580459 - 2 commits from branch
mentioned in commit 52eaab16