Aug-28-2023, 09:37 AM
(Aug-28-2023, 09:30 AM)winash12 Wrote: I was not able to visualize what would be my boolean condition since both inner_point and outer_point are tuples
np.asarray
might help youimport numpy as np MyTuple = (1, 2, 3, 0, 0, 100) print(f"MyTyple type = {type(MyTuple)}") MyTupleConvertedIntoArray = np.asarray(MyTuple) print(f"MyTupleConvertedIntoArray type = {type(MyTupleConvertedIntoArray)}") print(f"MyTupleConvertedIntoArray = {MyTupleConvertedIntoArray}")
Output:MyTyple type = <class 'tuple'>
MyTupleConvertedIntoArray type = <class 'numpy.ndarray'>
MyTupleConvertedIntoArray = [ 1 2 3 0 0 100]