diff options
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 183c4ac..43703a7 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -1084,6 +1084,9 @@ bullets')) def _prim_myfunction(self, f, x): """ Programmable block """ + for i, v in enumerate(x): + if type(v) == int: # Pass float values to Python block + x[i] = float(v) try: y = myfunc(f, x) if str(y) == 'nan': |