Skip to content

Removed float restriction in variable updater#32

Open
tkevinbest wants to merge 1 commit intomainfrom
31-variable-updater-requires-float
Open

Removed float restriction in variable updater#32
tkevinbest wants to merge 1 commit intomainfrom
31-variable-updater-requires-float

Conversation

@tkevinbest
Copy link
Member

Code now works for arbitrary python types. I updated the two test scripts as well, showing that it works for both a float and a dictionary. Should work for any other python type too.

image

@tkevinbest tkevinbest requested a review from jmontp April 18, 2025 22:47
@tkevinbest tkevinbest linked an issue Apr 18, 2025 that may be closed by this pull request
@tkevinbest tkevinbest self-assigned this Apr 18, 2025
@jmontp
Copy link
Contributor

jmontp commented Apr 19, 2025

Oh that's funny, I didn't know that the recv_pyobj worked out of the box for other python objects (although its name indicates it). We should probably add a warning about its safety though:

Screenshot 2025-04-19 101825

Copy link
Contributor

@jmontp jmontp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just had to remove the if condition checking the object type. Thanks for updating the example code with new test cases.

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.

Variable updater requires float

2 participants