Re: Nearest neighbours of points

2015-10-31 Thread Terry Reedy
On 10/31/2015 5:28 PM, Tom P wrote: On 10/24/2015 10:05 PM, Poul Riis wrote: I have N points in 3D, organized in a list. I want to to point out the numbers of the two that have the smallest distance. With scipy.spatial.distance.pdist I can make a list of all the distances, and I can point out th

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Terry Reedy
On 10/31/2015 9:45 PM, Michiel Overtoom wrote: On 31 Oct 2015, at 06:59, Terry Reedy wrote: This is a different issue than IDLE avoiding clashes. I opened https://bugs.python.org/issue25522 Terry, thanks for recording this into the issue tracker. I'd go even a step further. I think IDLE sh

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Chris Angelico
On Sun, Nov 1, 2015 at 12:45 PM, Michiel Overtoom wrote: > I'd go even a step further. I think IDLE should not only warn, but completely > prevent saving a file which shadows a stdlib module, which will effectively > render Python unusable. I remember from a few weeks back, a teacher with the >

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Michiel Overtoom
> On 31 Oct 2015, at 06:59, Terry Reedy wrote: > This is a different issue than IDLE avoiding clashes. I opened > https://bugs.python.org/issue25522 Terry, thanks for recording this into the issue tracker. I'd go even a step further. I think IDLE should not only warn, but completely prevent s

Re: Nearest neighbours of points

2015-10-31 Thread Tom P
On 10/24/2015 10:05 PM, Poul Riis wrote: I have N points in 3D, organized in a list. I want to to point out the numbers of the two that have the smallest distance. With scipy.spatial.distance.pdist I can make a list of all the distances, and I can point out the number of the minimum value of th

Re: GoPiGo script

2015-10-31 Thread MRAB
On 2015-10-31 20:18, input/ldompel...@casema.nl wrote: It does not only print; it also calls enable_servo, servo and fwd repeatedly. Then I am misinformed, because someone told me in this group to use while True: Is there another function that I can use for to restart this script? The lines t

Re: GoPiGo script

2015-10-31 Thread input/ldompeling
> It does not only print; it also calls enable_servo, servo and fwd > repeatedly. > Then I am misinformed, because someone told me in this group to use while True: Is there another function that I can use for to restart this script? Thanks In reply to "MRAB" who wrote the following: > On

Re: GoPiGo script

2015-10-31 Thread MRAB
On 2015-10-31 18:59, input/ldompel...@casema.nl wrote: The body of the 'while' loop extends from the line: enable_servo() to the line: print ("forward1x") Would that explain it? When i run this scipt its only print a lot off print1x. Do you mean that ? It does not only print; it

Re: GoPiGo script

2015-10-31 Thread input/ldompeling
> The body of the 'while' loop extends from the line: > > enable_servo() > > to the line: > > print ("forward1x") > > Would that explain it? When i run this scipt its only print a lot off print1x. Do you mean that ? Thanks In reply to "MRAB" who wrote the following: > On 2015-10-3

Re: GoPiGo script

2015-10-31 Thread MRAB
On 2015-10-31 10:28, input/ldompel...@casema.nl wrote: I intended the rules under while True: The script is working now only the wheels go's only forward "(fwd)",so the sensor not detect any obstacles.(sensor=us_dist(15). --

Re: [ANN] Python 3 Cheat Sheet v2.0

2015-10-31 Thread Laurent Pointal
Le Sat, 31 Oct 2015 12:16:08 +1100, Steven D'Aprano a écrit : > On Sat, 31 Oct 2015 06:56 am, Laurent Pointal wrote: >> https://perso.limsi.fr/pointal/python:memento > > > Very nice! Thank you! > > > Some small typos in the English version: Thanks for your comments. Q? Did you read

Re: GoPiGo script

2015-10-31 Thread input/ldompeling
I intended the rules under while True: The script is working now only the wheels go's only forward "(fwd)",so the sensor not detect any obstacles.(sensor=us_dist(15). --- from gopigo import * import time set_right_spe