Op dinsdag 25 maart 2014 20:15:27 UTC+1 schreef Joel Goldstick:
> Jean, be aware there is also python tutor list you might like. This is
> sometimes a tough crowd here. Don't be discouraged. It can be a badge of
> honor sometimes
thanks for the suggestions, I already subscribed to the python tu
Op dinsdag 25 maart 2014 20:58:10 UTC+1 schreef Dave Angel:
> Jean Dubois Wrote in message:
> > Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
>
> >> If your instructor wanted you to copy examples, he would have
> >> given you one.
> > please Da
Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
> Jean Dubois Wrote in message:
> > Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
> >>
> >> py> values = [float(s) for s in data.split()]
> >> py> print values
> >&g
Op dinsdag 25 maart 2014 17:12:12 UTC+1 schreef Peter Otten:
> Jean Dubois wrote:
> > Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
> >> On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
> >>
> >> > I'm confused by the
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
> On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
>
> > I'm confused by the behaviour of the following python-script I wrote:
> >
> > #!/usr/bin/env python
> > #I first made a data fi
I'm confused by the behaviour of the following python-script I wrote:
#!/usr/bin/env python
#I first made a data file 'test.dat' with the following content
#1.0 2 3
#4 5 6.0
#7 8 9
import numpy as np
lines=[line.strip() for line in open('test.dat')]
#convert lines-list to numpy-array
array_lines=n
Op maandag 23 december 2013 16:29:09 UTC+1 schreef Michael Torrie:
> On 12/23/2013 07:06 AM, Jean Dubois wrote:
> > I thought this would be something python-people are familiar with, after
> > all idle is a Python IDE and running it as a root sometimes is necessary.
>
> On
Op zondag 22 december 2013 18:06:39 UTC+1 schreef Michael Torrie:
> On 12/22/2013 06:27 AM, Jean Dubois wrote:
> > I was wrong writing idle_as_root worked this way. As a matter of fact,
> > this method also does not work as expected, as can be seen from this
> > message:
&g
Op zondag 22 december 2013 14:02:47 UTC+1 schreef Jean Dubois:
> I found the following solution to use idle on the raspberry pi
> as sudoer (which is necessary or at least comfortable when programming the
> GPIO)
> 1. Open a terminal
> 2. type cd ~/Desktop
> 3. type touch idle
I found the following solution to use idle on the raspberry pi
as sudoer (which is necessary or at least comfortable when programming the
GPIO)
1. Open a terminal
2. type cd ~/Desktop
3. type touch idle_as_root
4. type nano idle_as_root
5. type in sudo idle
6. exit nano
7. type in sudo chmod +x id
Op woensdag 18 december 2013 15:48:43 UTC+1 schreef Jean Dubois:
> Op woensdag 18 december 2013 14:04:08 UTC+1 schreef Jean Dubois:
> > Op dinsdag 17 december 2013 10:37:37 UTC+1 schreef Jean-Michel Pichavant:
> > > > I'm a newbie in Python programming that is very much
Op woensdag 18 december 2013 21:28:05 UTC+1 schreef Jerry Hill:
> On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois wrote:
> > I have a python-program which I want to perform its task first, then
> > switch to
> > the python console to experiment with further commands, using
I have a python-program which I want to perform its task first, then
switch to
the python console to experiment with further commands, using what was
already
defined in the python-program.
I want this as an alternative for what I do now (but which is not very
efficient):
I start the python-console
Op woensdag 18 december 2013 14:04:08 UTC+1 schreef Jean Dubois:
> Op dinsdag 17 december 2013 10:37:37 UTC+1 schreef Jean-Michel Pichavant:
> > > I'm a newbie in Python programming that is very much true, and
> > > contrary to what you seem to suggest I did my homework
&
Op dinsdag 17 december 2013 10:37:37 UTC+1 schreef Jean-Michel Pichavant:
> > I'm a newbie in Python programming that is very much true, and
> > contrary to what you seem to suggest I did my homework
> At no point that was my intention, my apologies.
OK, no problem
> If you fixed the syntax error,
Op maandag 16 december 2013 20:21:15 UTC+1 schreef Jean-Michel Pichavant:
> - Original Message -
> > On Tue, Dec 17, 2013 at 5:26 AM, Jean Dubois
> > wrote:
> > >> Try something simple first:
> > >> import telnetlib
> > >> host = '
Op maandag 16 december 2013 17:44:31 UTC+1 schreef Jean-Michel Pichavant:
> > This is what I got using telnet:
> > [jean:~] $ telnet 10.128.59.63 7000
> > Trying 10.128.59.63...
> > Connected to 10.128.59.63.
> > Escape character is '^]'.
> > *IDN?
> > KEITHLEY INSTRUMENTS INC.,MODEL 2425,1078209,C
Op maandag 16 december 2013 15:16:17 UTC+1 schreef Jean-Michel Pichavant:
> - Original Message -
> > Op maandag 16 december 2013 13:05:41 UTC+1 schreef Jean-Michel
> > Pichavant:
> > > > Here is the code:
> > > > #!/usr/bin/env python
> > > > import telnetlib
> > > > host = '10.128.59.63'
>
Op maandag 16 december 2013 13:05:41 UTC+1 schreef Jean-Michel Pichavant:
> > Here is the code:
> > #!/usr/bin/env python
> > import telnetlib
> > host = '10.128.59.63'
> > port = 7000
> > t = Telnet(host, port)
> > t.write('*IDN?\n')
> > print t.read_until('Whateverprompt')
> > # you can use read_
Op maandag 16 december 2013 11:29:12 UTC+1 schreef Jean-Michel Pichavant:
> > > Such equipment often implements a telnet protocol. Have use try
> > > using the telnetlib module ?
> > > http://docs.python.org/2/library/telnetlib.html
> > >
> > > t = Telnet(host, port)
> > > t.write('*IDN?')
> > > pr
Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg:
> On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois wrote:
> > On Thursday, December 12, 2013 12:20:36 AM UTC+1, Dan Stromberg wrote:
> >> On Wed, Dec 11, 2013 at 3:08 PM, Jean Dubois wrote:
> >>
&g
Op zondag 15 december 2013 02:03:14 UTC+1 schreef Dan Stromberg:
> On Sat, Dec 14, 2013 at 5:33 AM, Jean Dubois wrote:
> > Op vrijdag 13 december 2013 16:35:31 UTC+1 schreef Jean-Michel Pichavant:
> >> - Original Message -
> >> > I have an ethernet-rs232 adap
Op vrijdag 13 december 2013 16:35:31 UTC+1 schreef Jean-Michel Pichavant:
> - Original Message -
> > I have an ethernet-rs232 adapter which allows me to connect to a
> > measurement instrument by means of netcat on a linux system.
> > e.g. entering nc 10.128.59.63 7000
> > allows me to ente
Op vrijdag 13 december 2013 09:35:18 UTC+1 schreef Mark Lawrence:
> On 13/12/2013 03:23, Jean Dubois wrote:
> >
> > kind regards,
> > jean
> > p.s. I'm using Linux/Kubuntu 11.04
> >
> Would you please read and action this
> https://wiki.python.org/moin
Op vrijdag 13 december 2013 18:09:50 UTC+1 schreef rusi:
> On Friday, December 13, 2013 5:50:03 PM UTC+5:30, Jean Dubois wrote:
> > to make the script check itself whether pyhon2 or python3 should be used?
> As far as I know both (2 and 3) worked
> Do you have some reason to suspec
Op vrijdag 13 december 2013 09:35:18 UTC+1 schreef Mark Lawrence:
> Would you please read and action this
> https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the
> double line spacing that accompanied the above, thanks.
>
> --
>
> Mark Lawrence
Dear Mark,
I'm sorry for the
Op vrijdag 13 december 2013 04:32:30 UTC+1 schreef Dan Stromberg:
> On Thu, Dec 12, 2013 at 7:23 PM, Jean Dubois wrote:
>
> > Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg:
>
> >> On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois
> >> wro
Op vrijdag 13 december 2013 04:32:30 UTC+1 schreef Dan Stromberg:
> On Thu, Dec 12, 2013 at 7:23 PM, Jean Dubois wrote:
>
> > Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg:
>
> >> On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois
> >> wro
Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg:
> On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois wrote:
>
> > On Thursday, December 12, 2013 12:20:36 AM UTC+1, Dan Stromberg wrote:
>
> >> On Wed, Dec 11, 2013 at 3:08 PM, Jean Dubois wrote:
>
>
On Thursday, December 12, 2013 9:21:32 AM UTC+1, Chris Angelico wrote:
> On Thu, Dec 12, 2013 at 7:08 PM, Jean Dubois wrote:
>
> > Thanks for the reply, I changed the line you mentioned to
>
> > s.send('*IDN?\n')
>
>
>
> See if there
On Thursday, December 12, 2013 12:20:36 AM UTC+1, Dan Stromberg wrote:
> On Wed, Dec 11, 2013 at 3:08 PM, Jean Dubois wrote:
>
> I have an ethernet-rs232 adapter which allows me to connect to a measurement
> instrument by means of netcat on a linux system.
>
>
> e.g. ent
On Thursday, December 12, 2013 12:38:12 AM UTC+1, Conor Hughes wrote:
> Jean Dubois writes:
>
>
>
> > I have an ethernet-rs232 adapter which allows me to connect to a
>
> > measurement instrument by means of netcat on a linux system.
>
> > e.g. entering n
I have an ethernet-rs232 adapter which allows me to connect to a measurement
instrument by means of netcat on a linux system.
e.g. entering nc 10.128.59.63 7000
allows me to enter e.g.
*IDN?
after which I get an identification string of the measurement instrument back.
I thought I could accomplish
Op zondag 8 december 2013 15:16:25 UTC+1 schreef Dave Angel:
> On Sat, 7 Dec 2013 23:45:06 -0800 (PST), Jean Dubois
>
> wrote:
>
> > This is what I get:
>
> > Traceback (most recent call last):
>
> > File "./feet2meters.py", line 2, in
>
&
Op zondag 8 december 2013 08:49:22 UTC+1 schreef Chris Angelico:
> On Sun, Dec 8, 2013 at 6:40 PM, Jean Dubois wrote:
>
> > coolens@antec2:~$ python3 feet2meters.py
>
> > ImportError: No module named Tkinter
>
>
>
> In Python 3, the module's named
Op zondag 8 december 2013 09:10:28 UTC+1 schreef Christian Gollwitzer:
> Am 07.12.13 17:52, schrieb Jean Dubois:
>
> > I'm trying to go through a tutorial on tkinter which has the code below as
> > an example. The only thing I see when running it is a little popup with
&
Op zaterdag 7 december 2013 19:23:30 UTC+1 schreef Cousin Stanley:
> >
>
> > The only thing I see when running it is a little popup
>
> > with "Click mouse here to quit" which works as expected
>
> > but always shows the following error-message.
>
>
>
> This seems to be left over f
Op zaterdag 7 december 2013 19:12:50 UTC+1 schreef Dave Angel:
> On Sat, 7 Dec 2013 08:52:08 -0800 (PST), Jean Dubois
>
> wrote:
>
> > I'm trying to go through a tutorial on tkinter which has the code
>
> below as an example. The only thing I see when running it
I'm trying to go through a tutorial on tkinter which has the code below as an
example. The only thing I see when running it is a little popup with "Click
mouse here to quit" which works as expected but always shows the following
error-message.
However the "main" window which should let you enter
Op vrijdag 6 december 2013 13:30:53 UTC+1 schreef Daniel Watkins:
> Hi Jean,
>
>
>
> On Fri, Dec 06, 2013 at 04:24:59AM -0800, Jean Dubois wrote:
>
> > I'm trying out Tkinter with the (non object oriented) code fragment below:
>
> > It works parti
I'm trying out Tkinter with the (non object oriented) code fragment below:
It works partially as I expected, but I thought that pressing "1" would
cause the program to quit, however I get this message:
TypeError: quit() takes no arguments (1 given), I tried changing quit to quit()
but that makes th
On 9 jun, 23:35, Roy Smith wrote:
> In article
> <20165c85-4cc3-4b79-943b-82443e4a9...@w7g2000vbw.googlegroups.com>,
> Jean Dubois wrote:
>
> > But, really,
> > > once you've done all that (and it's worth doing as an exercise), rewrite
> > > y
On 9 jun, 22:23, Roy Smith wrote:
> In article
> ,
> Jean Dubois wrote:
>
> > I'm writing some code to check whether an url is available or not,
> > therefore I make use of a wget-command in Linux and then check whether
> > this is successful
>
> In gene
On 9 jun, 22:29, Fábio Santos wrote:
> On 9 Jun 2013 21:24, "Jean Dubois"
> ...> And here is the result:
>
> > jean@antec4:~$ ./try.py
> > wget -q -O -
>
> http://www.deredactie.be/cm/vrtnieuws/videozone/programmas/journaal/E...>
> >/dev/null ; ec
On 9 jun, 22:00, Fábio Santos wrote:
> On 9 Jun 2013 20:49, "Jean Dubois" wrote:
>
>
>
> > I'm writing some code to check whether an url is available or not,
> > therefore I make use of a wget-command in Linux and then check whether
> > this is suc
I'm writing some code to check whether an url is available or not,
therefore I make use of a wget-command in Linux and then check whether
this is successful (returning a 0) or not returning an 8
However the if then statement seems to give the same result in both
cases:
Here is my code:
#!/usr/bin/
On 18 dec, 14:09, Peter Otten <__pete...@web.de> wrote:
> Jean Dubois wrote:
> > I have trouble with the code beneath to make an array with equally
> > spaced values
> > When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
> > get the followi
I have trouble with the code beneath to make an array with equally
spaced values
When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
get the following result:
[ 0.0001 0.00022 0.00034 0.00046 0.00058 0.0007 ]
But I was hoping for:
[ 0.0001 0.0002 0.0003 0.0004 0.0005 0.
On 12 dec, 01:49, Jerry Hill wrote:
> On Tue, Dec 11, 2012 at 1:58 AM, Jean Dubois wrote:
>
> > I found examples in theusbtmckernel driver documentation (the
> > examples there are given in C):
> >http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.htm?&cc=BE&a
On 11 dec, 15:34, w...@mac.com wrote:
> On Dec 11, 2012, at 1:58 AM, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
> > On 10 dec, 16:34, w...@mac.com wrote:
> >> On Dec 10, 2012, at 8:31 AM, Jean Dubois wrote:
>
> >> [byte]
> >>> A
On 10 dec, 16:34, w...@mac.com wrote:
> On Dec 10, 2012, at 8:31 AM, Jean Dubois wrote:
>
> [byte]
>
>
>
>
>
>
>
>
>
> > As you can see this approach suffers from the same "buffer problem" as
> > the approach with readline did. One now
On 7 dec, 14:46, Jean Dubois wrote:
> On 6 dec, 21:15, w...@mac.com wrote:
>
> > On Dec 6, 2012, at 2:41 PM, Jean Dubois wrote:
>
> > > On 6 dec, 15:50, w...@mac.com wrote:
> > >> On Dec 6, 2012, at 8:50 AM, Jean Dubois wrote:
>
> > >> [byte
On 6 dec, 21:28, Terry Reedy wrote:
> On 12/6/2012 10:44 AM, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
> > I followed your suggestion an now the code looks like this:
> > #!/usr/bin/python
> > import time
> > import os
> > import sys
> >
On 6 dec, 21:15, w...@mac.com wrote:
> On Dec 6, 2012, at 2:41 PM, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
> > On 6 dec, 15:50, w...@mac.com wrote:
> >> On Dec 6, 2012, at 8:50 AM, Jean Dubois wrote:
>
> >> [byte]
>
> >>> It se
On 6 dec, 15:50, w...@mac.com wrote:
> On Dec 6, 2012, at 8:50 AM, Jean Dubois wrote:
>
> [byte]
>
>
>
>
>
>
>
>
>
>
>
> > It seems there is some misunderstanding here. What I meant with how
> > to "do the equivalent in Python" re
On 4 dec, 20:55, Terry Reedy wrote:
> On 12/4/2012 7:14 AM, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
> > The following test program which tries to communicate with a Keithley
> > 2200 programmable power supply using usbtmc in Python does not work as
> >
On 4 dec, 20:55, Terry Reedy wrote:
> On 12/4/2012 7:14 AM, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
> > The following test program which tries to communicate with a Keithley
> > 2200 programmable power supply usingusbtmcin Python does not work as
> >
On 5 dec, 23:21, w...@mac.com wrote:
> On Dec 5, 2012, at 3:38 PM, Jean Dubois wrote:
>
> [byte]
>
>
>
> >> I note that in your Octave example you are reading characters rather than
> >> lines. It seems to me that you have two choices here, either do t
On 5 dec, 16:26, w...@mac.com wrote:
> On Dec 4, 2012, at 11:12 AM, Jean Dubois wrote:
>
> > On 4 dec, 15:33, w...@mac.com wrote:
> >> On Dec 4, 2012, at 7:14 AM, Jean Dubois wrote:
>
> >>> The following test program which tries to communicate with a Keithley
On 4 dec, 15:33, w...@mac.com wrote:
> On Dec 4, 2012, at 7:14 AM, Jean Dubois wrote:
>
>
>
> > The following test program which tries to communicate with a Keithley
> > 2200 programmable power supply using usbtmc in Python does not work as
> > expected. I have conn
The following test program which tries to communicate with a Keithley
2200 programmable power supply using usbtmc in Python does not work as
expected. I have connected a 10 ohm resistor to its terminals and I
apply 0.025A, 0.050A, 0.075A en 0.1A,
I then measure the current and the voltage en write
On 11 nov, 20:30, Jean Dubois wrote:
> On 9 nov, 22:14, w...@mac.com wrote:
>
>
>
> > On Nov 9, 2012, at 3:43 PM, Jean Dubois wrote:
>
> > > The error may be obvious but finding this file and how to install it
> > > is not unfortunately.
> > >
On 9 nov, 22:14, w...@mac.com wrote:
> On Nov 9, 2012, at 3:43 PM, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
>
>
> > The error may be obvious but finding this file and how to install it
> > is not unfortunately.
> > It seems I have to install it f
On Nov 9, 2012, at 11:22 AM, Jean Dubois wrote:
>
>
>
>
>
>
>
> > OSError: /usr/local/vxipnp/linux/bin/libvisa.so.7: cannot open shared
> > object file: No such file or directory
The error may be obvious but finding this file and how to install it
is not un
I'm trying to control a programmable power supply via USB using
python.
After doing some googling I thought I should use PyVisa for this
purpose, so I installed it as follows:
tar xvfz PyVISA-1.4.tar.gz
cd PyVISA-1.4
python setup.py install
Installation seems to finish without errors.
When I star
On 5 aug, 20:28, Mark Lawrence wrote:
> On 05/08/2012 19:04, Jean Dubois wrote:
>
>
>
>
>
>
>
>
>
> > On 5 aug, 02:11, shearich...@gmail.com wrote:
> >> One reason you may be having difficulty is that unlike some languages
> >> (C++/Java) ob
On 5 aug, 02:11, shearich...@gmail.com wrote:
> One reason you may be having difficulty is that unlike some languages
> (C++/Java) object-orientation is not a be all and end all in Python, in fact
> you could work with Python for a long time without really 'doing it' at all
> (well other than ca
On 5 aug, 02:11, shearich...@gmail.com wrote:
> One reason you may be having difficulty is that unlike some languages
> (C++/Java) object-orientation is not a be all and end all in Python, in fact
> you could work with Python for a long time without really 'doing it' at all
> (well other than ca
I'm looking for a good introduction to object oriented programming
with Python. I am looking for an introduction which only refers to
Python. I have seen introductions where the authors make comparisons
to other languages such as C++ and Java, but as I don't know these
languages that doesn't help m
Op vrijdag 13 juli 2012 03:52:51 UTC+2 schreef Vincent Vande Vyvre het volgende:
> On 12/07/12 08:42, Jean Dubois wrote:
> > On 12 jul, 02:59, Vincent Vande Vyvre <vincent.vandevy...@swing.be>
> > wrote:
> >> On 11/07/12 17:37, Jean Dubois wrote:
> >>
> &g
On 12 jul, 02:59, Vincent Vande Vyvre
wrote:
> On 11/07/12 17:37, Jean Dubois wrote:
>
>
>
>
>
>
>
> > I'm trying to combine python-code made with QT4 designer with plain
> > python statements like
> > file = open("test","w")
&g
I'm trying to combine python-code made with QT4 designer with plain
python statements like
file = open("test","w")
Can anyone tell me what I have to add to the following code just to
open a file when clicking on the load-button and closing it by
clicking on the save button.
#!/usr/bin/env python
72 matches
Mail list logo