Repository navigation
Add tests to interact with Python bindings via numpy array - #95
Conversation
|
@S-Dafarra thanks for the review, but I wanted to know your opinion on:
(Clearly the change of that would be a bigger PR) |
Sorry, I missed the question in the first place! I think it is a good idea. On it |
|
Corresponding PR #97 |
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # bindings/python/core/tests/test_interfaces.py Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
I do not think the agent got correctly what changed in the other PR. |
However, given how assert_* function works, it worked fine, so let's merge and release. |
This was the second comment that I had on #88 . My feeling is that most user of dinrail would find it natural to interact with dinrail via numpy array.
So I tested this with a few tests. For "setting" the value, both list and np.array work fine. For reading the value, the output needs to be converted every time with
np.asarray. I wonder if it make instead sense to give in output directlynp.array, and users that need list can convert them after the call?