On Thursday, August 2, 2018 at 12:03:01 PM UTC-4, Wanderer wrote:
> I have a laptop with windows 98 I use to connect to the OBD2 port on my car.
> I'm trying to install pyobd. I have a build for Python 2.7 for Windows98 that
> works but I'm having trouble with running
I have a laptop with windows 98 I use to connect to the OBD2 port on my car.
I'm trying to install pyobd. I have a build for Python 2.7 for Windows98 that
works but I'm having trouble with running wxPython. I get the following error.
C:\pyobd>python pyobd.py
Traceback (most recent call last):
On Tuesday, April 10, 2018 at 3:28:05 AM UTC-4, Thomas Jollans wrote:
> On 2018-04-10 07:06, T Berger wrote:
> > This is the first time I've joined a google group and I don't understand
> > the setup. Why are most of the posts in this group unrelated to python, and
> > how do I filter this junk (
On Wednesday, January 3, 2018 at 1:11:31 PM UTC-5, Skip Montanaro wrote:
> The zipfile module is kind of cool because you can access elements of
> the archive without explicitly uncompressing the entire archive and
> writing the structure to disk. I've got some 7z archives I'd like to
> treat the s
That works. Thanks
--
https://mail.python.org/mailman/listinfo/python-list
This dos batch files works on windows 7
"C:\Program Files (x86)\DOOM 3\qoom3.exe" +set fs_game_base darkmod +set
fs_game training_mission
but this python subprocess.call doesn't
subprocess.call(['C:/Program Files (x86)/DOOM 3/qoom3.exe', '+set fs_game_base
darkmod', '+set fs_game training_miss
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote:
> I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit
> of Java and trying to learn this new-fangled Python language!
>
> I've got a small program that uses PIL to create an image, draw some
> primitives (rectang
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote:
> I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit
> of Java and trying to learn this new-fangled Python language!
>
> I've got a small program that uses PIL to create an image, draw some
> primitives (rectang
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote:
> I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit
> of Java and trying to learn this new-fangled Python language!
>
> I've got a small program that uses PIL to create an image, draw some
> primitives (rectang
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote:
> I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit
> of Java and trying to learn this new-fangled Python language!
>
> I've got a small program that uses PIL to create an image, draw some
> primitives (rectan
On Sunday, July 9, 2017 at 8:59:45 PM UTC-4, timetowalk wrote:
> On Sunday, July 9, 2017 at 8:05:59 PM UTC-4, Michael Torrie wrote:
> > On 07/09/2017 05:39 PM, timetowal...@gmail.com wrote:
> > > I use https://groups.google.com/forum/#!forum/comp.lang.python to look
> > > over message posts.
> > >
I use this script to ban authors from Google Groups. You need to create a
banned authors text file with each author separated by a new line. For Mozilla
you need to compile it to a pyc file, associate pyc files with Python and
create a bookmark. You then use the bookmark to enter google groups w
On Saturday, March 4, 2017 at 11:31:13 AM UTC-5, Chris Angelico wrote:
> On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote:
> > I mostly just lurk and view the post titles to see if something interesting
> > is being discussed. This code gets me a web page without the spam. You need
I mostly just lurk and view the post titles to see if something interesting is
being discussed. This code gets me a web page without the spam. You need to
compile it to a pyc file and create a bookmark. Probably not useful for most
people who don't use their browsers the way I do, but here it is
On Saturday, February 25, 2017 at 1:03:40 PM UTC-5, Deborah Swanson wrote:
> Dennis Lee Bieber wrote, on February 25, 2017 4:50 AM
> >
> > On Fri, 24 Feb 2017 22:26:15 -0800, "Deborah Swanson"
> > declaimed the following:
> >
> > >
> > >Well rats. Skull duggery on the net is a lot more sophisti
On Sunday, December 11, 2016 at 12:52:04 PM UTC-5, MRAB wrote:
> On 2016-12-11 16:28, Wanderer wrote:
> > I have an outdoor thermometer that transmits to an indoor receiver at
> > 433Mhz. I also have a 433Mhz USB serial port jig from a TI development
> > tool. I would l
I have an outdoor thermometer that transmits to an indoor receiver at 433Mhz. I
also have a 433Mhz USB serial port jig from a TI development tool. I would like
to use the TI USB serial port to capture the temperature information. The TI
USB port registers as a COM port that I can access with pyS
Dear friendI'm very sorry to bother you in a busy schedule.
But I have a questions about Sigil's environment that really need your help.
I'm trying to use Sigil at a windows system,the follow are the relation of
Sigil build and run environment.
OS:WIN10
Python:python-3.6.0a4-amd64
QT:qt5.5.1
A
On Tuesday, September 2, 2014 8:29:32 PM UTC-4, Fabio Zadrozny wrote:
> On Tue, Sep 2, 2014 at 2:27 PM, Wanderer wrote:
>
>
>
>
> I'm trying to set up Eclipse with PyDev and I can't get the code analysis to
> work the way I want.
>
>
>
> Wheneve
I'm trying to set up Eclipse with PyDev and I can't get the code analysis to
work the way I want.
Whenever I type 'def' it generates an error before I finish the line. I don't
want to see errors until I finish typing. It's not an error I'm just not done
yet. So I try to turn this off by going
Why does the numpy masked_where create a special case for all False?
import numpy
x = numpy.array([[9,9,9,9,9,9],[9,9,9,9,9,9],[9,9,9,9,9,9],[9,9,9,9,9,9]])
y = numpy.ma.masked_where(x<3,x)
y.mask
Out[1]: False
z= numpy.arange(20)
z.reshape(4,5)
Out[1]:
array([[ 0, 1, 2, 3, 4],
[ 5, 6
On Wednesday, September 11, 2013 4:23:57 PM UTC-4, Dave Angel wrote:
> On 11/9/2013 10:26, Wanderer wrote:
>
>
>
> > How do I send the command 'Alt+D' to subprocess.PIPE?
>
>
>
> That's not a command, it's a keystroke combination. And withou
On Wednesday, September 11, 2013 1:43:09 PM UTC-4, Gary Herron wrote:
> On 09/11/2013 07:26 AM, Wanderer wrote:
>
> > How do I send the command 'Alt+D' to subprocess.PIPE?
>
> >
>
> > My code is
>
> >
>
> > import subprocess
How do I send the command 'Alt+D' to subprocess.PIPE?
My code is
import subprocess
rsconfig = subprocess.Popen(["C:\Program
Files\Photometrics\PVCam64\utilities\RSConfig\RSConfig.exe",
],stdin=subprocess.PIPE)
rsconfig.stdin.write('Alt+D')
Thanks
--
https://mail.python.org/mailman/listinfo/p
On Wednesday, July 31, 2013 2:39:29 PM UTC-4, Skip Montanaro wrote:
> > I don't understand. That just moves them to a different file --
>
> > doesn't it? You've still got to deal with editing a large table of
>
> > data (for example when I want to add instructions to your assembler).
>
>
>
>
On Monday, July 8, 2013 10:44:11 AM UTC-4, davide@gmail.com wrote:
> Hi, I work with Python 3.3.
>
> I downloaded an IPython executable version from
> http://www.lfd.uci.edu/~gohlke/pythonlibs/
>
> I installed it but no shortcut appears in my start menu.
>
> How can I launch it or alternati
On Thursday, June 20, 2013 2:47:52 PM UTC-4, MRAB wrote:
> On 20/06/2013 19:35, Wanderer wrote:
>
> > Do I need to uninstall Python 2.7.3 before installing Python 2.7.5?
>
> >
>
> No.
You're right. I had no problems. FYI the operating system is Windows 7.
T
Do I need to uninstall Python 2.7.3 before installing Python 2.7.5?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Saturday, March 23, 2013 7:11:10 AM UTC-4, Fabio Zadrozny wrote:
> On Sat, Mar 23, 2013 at 12:38 AM, rusi wrote:
>
>
>
>
> On Mar 23, 7:58 am, Fabio Zadrozny wrote:
>
>
>
> > Hello there,
>
> >
>
> > As I've proposed it, let me try to explain it a bit better (if you have
>
> > doubts
I just updated PyDev and I got this message that they are looking for funding
for a new flavor of Eclipse called LiClipse. The description of what LiClipse
will be is kind of sketchy. No offense intended, but why? There is already a
bunch of downloads at Eclipse and there is also Easy Eclipse. T
On Wednesday, March 20, 2013 11:27:30 AM UTC-4, Ana Dionísio wrote:
> So, I have this script that puts in a list every minute in 24 hours
>
>
>
> hour=[]
>
> i=0
>
> t=-(1.0/60.0)
>
> while i<24*60:
>
> i = i+1
>
> t = t+(1.0/60.0)
>
> hour.append([t])
>
>
>
> When it is doi
I have two versions of Eclipse on two different machines; Indigo and Juno. In
Indigo, the wxPython event variable in the definitions is not flagged as an
unused variable even though I don't use it in the method. In Juno I keep
getting the warnings. The event variable is just there to bind the me
On Monday, February 11, 2013 1:09:38 PM UTC-5, MRAB wrote:
> On 2013-02-11 16:39, Wanderer wrote:
>
> > If I check the 'Use space before and after operators? (+, -, /, *,
>
> > //, **, etc.)' in the Eclipse>PyDev>Editor>Code Style> Code
>
>
If I check the 'Use space before and after operators? (+, -, /, *, //, **,
etc.)' in the Eclipse>PyDev>Editor>Code Style> Code Formatter, PyDev will
insert a space before a negative number in a keyword parameter declaration.
Pep8.py will then post a warning 'E251 no spaces around keyword / param
On Monday, January 28, 2013 12:32:50 PM UTC-5, Rob Day wrote:
> On 28 January 2013 17:07, Wanderer wrote:
>
> > Yes. I noticed this variability. I've been using the Totusoft
> > Lan_Speedtest.exe to test some modules. I've tested through the wifi to our
> > int
On Monday, January 28, 2013 11:30:47 AM UTC-5, Dave Angel wrote:
> On 01/28/2013 10:47 AM, Wanderer wrote:
>
> > I'm looking to make a WLAN tester for a manufacturing test. Something that
> > could send and receive a bunch of files and measure how long it took. I
> &g
I'm looking to make a WLAN tester for a manufacturing test. Something that
could send and receive a bunch of files and measure how long it took. I would
repeat this a number of times for a device under test and then use some metric
to decide pass/fail and create a report. What libraries are avai
On Thursday, December 13, 2012 11:54:10 AM UTC-5, Dave Angel wrote:
> On 12/13/2012 11:36 AM, Wanderer wrote:
>
> >
>
> >
>
> > Thanks. Why Non-blocking?
>
>
>
> You said you didn't want the GUI to lock up. Non-blocking lets you
>
> ch
On Wednesday, December 12, 2012 3:53:28 PM UTC-5, MRAB wrote:
> On 2012-12-12 20:11, Wanderer wrote:
>
> > I have a program that has a main GUI and a camera. In the main GUI, you can
> > manipulate the images taken by the camera. You can also use the menu to
> > che
I have a program that has a main GUI and a camera. In the main GUI, you can
manipulate the images taken by the camera. You can also use the menu to check
the camera's settings. Images are taken by the camera in a separate thread, so
the long exposures don't block the GUI. I block conflicts betwe
On Monday, October 15, 2012 1:34:24 PM UTC-4, MRAB wrote:
> On 2012-10-15 18:18, Wanderer wrote:
>
> > On Monday, October 15, 2012 12:34:53 PM UTC-4, MRAB wrote:
>
> >
>
> >>
>
> >> Yes, but you've put the message in msg, and Exc
On Monday, October 15, 2012 1:18:52 PM UTC-4, Wanderer wrote:
> On Monday, October 15, 2012 12:34:53 PM UTC-4, MRAB wrote:
>
>
>
> >
>
> > Yes, but you've put the message in msg, and Exception doesn't have that
>
> >
>
> > attribute
On Monday, October 15, 2012 12:34:53 PM UTC-4, MRAB wrote:
>
> Yes, but you've put the message in msg, and Exception doesn't have that
>
> attribute.
>
That's weird. I got this Exception class definition idea from this post by
Guido van Rostrum, Where he gives this main function to look like
How do you get Exceptions to print messages? I have an exception defined like
this
class PvCamError(Exception):
def __init__(self, msg):
self.msg = msg
But when the error is raised I get this:
Traceback (most recent call last):
File
"C:\Python27\lib\site-packages\ipython-0.12.1-p
On Friday, October 12, 2012 12:29:02 PM UTC-4, Dave Angel wrote:
> On 10/12/2012 11:36 AM, Wanderer wrote:
>
> > I'm trying to write some code that will load one of three dll depending on
> > the one available. I've tried the code below, but it doesn't work. The
On Friday, October 12, 2012 12:57:06 PM UTC-4, MRAB wrote:
> On 2012-10-12 16:36, Wanderer wrote:
>
> > I'm trying to write some code that will load one of three dll depending on
> > the one available. I've tried the code below, but it doesn't work. The
I'm trying to write some code that will load one of three dll depending on the
one available. I've tried the code below, but it doesn't work. The try except
doesn't catch the exception. Is there a way to do this?
try:
self.dll = windll.pvcam64
except:
prin
On Monday, September 17, 2012 7:43:06 PM UTC-4, Martin De Kauwe wrote:
> On Tuesday, September 18, 2012 8:31:09 AM UTC+10, Wanderer wrote:
>
> > I need to divide a 512x512 image array with the first horizontal and
> > vertical division 49 pixels in. Then every 59 pixels in
I need to divide a 512x512 image array with the first horizontal and vertical
division 49 pixels in. Then every 59 pixels in after that. hsplit and vsplit
want to start at the edges and create a bunch of same size arrays. Is there a
command to chop off different sized arrays?
Thanks
--
http://
On Friday, September 14, 2012 8:22:44 AM UTC-4, pauls...@gmail.com wrote:
> os.system worked fine, and I found something in another section of code that
> was causing the "Too many open errors." (I was fooled, because output from
> subprocess call didn't seem to be coming out until the open files
On Monday, September 10, 2012 4:14:18 PM UTC-4, Wanderer wrote:
> On Monday, September 10, 2012 4:12:40 PM UTC-4, MRAB wrote:
>
> > On 10/09/2012 20:39, Wanderer wrote:
>
> >
>
> > > I have an array generated by audiolab of left and right stereo
>
> &g
On Monday, September 10, 2012 4:12:40 PM UTC-4, MRAB wrote:
> On 10/09/2012 20:39, Wanderer wrote:
>
> > I have an array generated by audiolab of left and right stereo
>
> > channels. It looks like [[1,1],[1,2],[2,3]]. I would like to combine
>
> > the left and
On Monday, September 10, 2012 3:39:11 PM UTC-4, Wanderer wrote:
> I have an array generated by audiolab of left and right stereo channels. It
> looks like [[1,1],[1,2],[2,3]]. I would like to combine the left and right
> channels to get an array [2,3,5]. Is there a numpy command t
I have an array generated by audiolab of left and right stereo channels. It
looks like [[1,1],[1,2],[2,3]]. I would like to combine the left and right
channels to get an array [2,3,5]. Is there a numpy command to do that?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 24, 5:22 pm, Ian Kelly wrote:
> On Tue, Jul 24, 2012 at 2:44 PM, Wanderer wrote:
> > I'm using getopt but not at that point. I really don't have a problem.
> > I'm just curious. I've never seen anything else after
> > assert False,
>
> >
On Jul 24, 4:31 pm, Ian Kelly wrote:
> On Tue, Jul 24, 2012 at 1:57 PM, Wanderer wrote:
> > If I use the code
>
> > assert False, "unhandled option"
>
> > I get output like:
>
> > option -q not recognized
> > for help use --help
>
> >
On Jul 24, 4:47 pm, Wanderer wrote:
> On Jul 24, 4:31 pm, Ian Kelly wrote:
>
>
>
>
>
>
>
>
>
> > On Tue, Jul 24, 2012 at 1:57 PM, Wanderer wrote:
> > > If I use the code
>
> > > assert False, "unhandled option"
>
> &
On Jul 24, 4:31 pm, Ian Kelly wrote:
> On Tue, Jul 24, 2012 at 1:57 PM, Wanderer wrote:
> > If I use the code
>
> > assert False, "unhandled option"
>
> > I get output like:
>
> > option -q not recognized
> > for help use --help
>
> >
If I use the code
assert False, "unhandled option"
I get output like:
option -q not recognized
for help use --help
What other expressions can I use other than "unhandled option"? Is there a list
somewhere?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, July 2, 2012 6:53:36 PM UTC-4, Dennis Lee Bieber wrote:
> On Mon, 2 Jul 2012 08:45:49 -0700 (PDT), Wanderer
> declaimed the following in
> gmane.comp.python.general:
>
> > Is there a way to set the mouse wheel resolution for the wxPython
> > wx.Slider? I would
Is there a way to set the mouse wheel resolution for the wxPython
wx.Slider? I would like to use the graphic slider for coarse control
and the mouse wheel for fine control. Right now the mouse wheel makes
the slider jump ten counts and I would like it to be a single count.
Thanks
--
http://mail.p
I have two versions of Python and Ipython; Python 2.6.6 with Ipython
0.11 and Python 2.7.3 with Ipython 0.12. When I run the Eclipse PyDev
console for the Python 2.7.3 it says it is using Ipython 0.11 as the
interpreter. Ipython 0.11 should not be in the Path for Python 2.7.3.
Is this a bug in Ipy
On Mar 7, 3:27 pm, Ian Kelly wrote:
> On Wed, Mar 7, 2012 at 1:03 PM, Ian Kelly wrote:
> > A set of defective pixels would be the probable choice, since it
> > offers efficient membership testing.
>
> Some actual code, using a recursive generator:
>
> def get_cluster(defective, pixel):
> yiel
I have a list of defective CCD pixels and I need to find clusters
where a cluster is a group of adjacent defective pixels. This seems to
me to be a classic linked list tree search.I take a pixel from the
defective list and check if an adjacent pixel is in the list. If it is
I add the pixel to the c
I think wanting to create a directory if one doesn't exist or do
nothing if it does exist and just use the existing directory is a
fairly normal programming need. Apparently this is somewhat
complicated in Python. If you use
if not os.path.exists(dirName):
os.makedirs(dirName)
you create a ra
One feature I like about Ipython is that it saves the history between
sessions. The history isn't saved if you close Ipython with the corner
X, but if you type 'exit()' it is saved. This doesn't work when using
Ipython as the console in Pydev. Do I have something setup wrong? Is
there a different c
On Jan 26, 2:56 pm, Wanderer wrote:
> On Jan 25, 1:12 pm, Wanderer wrote:
>
> > I found it it is in the stsci package.
>
> > On Jan 24, 11:36 am, Eelco wrote:
>
> > > Either way, if I understand correctly, what you are trying to do could
> > >
On Jan 25, 1:12 pm, Wanderer wrote:
> I found it it is in the stsci package.
>
> On Jan 24, 11:36 am, Eelco wrote:
>
> > Either way, if I understand correctly, what you are trying to do could
> > be done with numpy.median(imagestack, axis=stackaxis), no?
>
> Yes
I found it it is in the stsci package.
On Jan 24, 11:36 am, Eelco wrote:
> Either way, if I understand correctly, what you are trying to do could
> be done with numpy.median(imagestack, axis=stackaxis), no?
Yes, I guess so. I didn't realize numpy.median had an axis option.
Thanks. That's one le
Back in scipy 0.7 there was a package called stsci that had function
scipy.stsci.image.median that created a median image from a stack of
images. The stsci package is dropped in v0.8. Has this functionality
been moved to a different package?
Thanks
Apologies if this is a double post. I had probl
On Dec 19, 11:00 pm, alex23 wrote:
> On Dec 20, 4:07 am, Wanderer wrote:
>
> > The windows installer didn't work but installing from the tar file
> > did. But installing from the tar file doesn't install Ipython in the
> > site-packages directory. It inst
On Dec 19, 12:12 pm, Wanderer wrote:
> On Dec 19, 4:49 am, Fernando Perez wrote:
>
>
>
>
>
>
>
>
>
> > Hi all,
>
> > on behalf of the IPython development team, I'm thrilled to announce, after
> > an intense 4 1/2 months of work, th
On Dec 19, 4:49 am, Fernando Perez wrote:
> Hi all,
>
> on behalf of the IPython development team, I'm thrilled to announce, after
> an intense 4 1/2 months of work, the official release of IPython 0.12.
>
> This is a very important release for IPython, for several reasons. First
> and foremost, w
On Sep 27, 5:19 pm, becky_lewis wrote:
> On Sep 27, 9:54 pm, Wanderer wrote:
>
> > How do I install Python 2.6.7 on Windows? The Python 2.6.6 page says
>
> > "Python 2.6.6 has been replaced by a newer security-fix only source
> > release of Python. Plea
How do I install Python 2.6.7 on Windows? The Python 2.6.6 page says
"Python 2.6.6 has been replaced by a newer security-fix only source
release of Python. Please download Python 2.6.7 instead."
But there is no windows installer on the 2.6.7 page. Do I install
2.6.6 first and then update to 2.6.7
On Jul 25, 3:20 pm, Christopher Barrington-Leigh
wrote:
> The following code:
>
> from pylab import arange
> nSegments=5.0
> print arange(0,1.0+1.0/nSegments,1.0/nSegments)
> nSegments=6.0
> print arange(0,1.0+1.0/nSegments,1.0/nSegments)
> nSegments=8.0
> print arange(
On Jul 14, 10:34 am, Grant Edwards wrote:
> On 2011-07-13, Thorsten Kampe wrote:
>
> > * Grant Edwards (Wed, 13 Jul 2011 13:03:22 + (UTC))
> >> On 2011-07-13, Thorsten Kampe wrote:
>
> >> >> and that that block is to be considered in relation to what was just
> >> >> said, before the colon.
On Jul 11, 1:12 am, Tim Roberts wrote:
> Jesse R wrote:
>
> >Hey I've been trying to convert this to run through ctypes and i'm
> >having a hard time
>
> >typedef struct _SYSTEM_PROCESS_ID_INFORMATION
> >{
> > HANDLE ProcessId;
> > UNICODE_STRING ImageName;
> >} SYSTEM_PROCESS_IMAGE_NAME_IN
On Jun 15, 2:10 pm, Ravikanth wrote:
> On Jun 15, 12:59 pm, Wanderer wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 15, 1:28 pm, Ravikanth wrote:
>
> > > On Jun 15, 11:57 am, Wanderer wrote:
>
> > > > On Jun 15, 12:00 pm, Rav
On Jun 15, 1:28 pm, Ravikanth wrote:
> On Jun 15, 11:57 am, Wanderer wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 15, 12:00 pm, Ravikanth wrote:
>
> > > On Jun 15, 10:32 am, Wanderer wrote:
>
> > > > On Jun 15, 11:04 am, Ravikanth wrot
On Jun 15, 12:00 pm, Ravikanth wrote:
> On Jun 15, 10:32 am, Wanderer wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 15, 11:04 am, Ravikanth wrote:
>
> > > Hi all,
>
> > > I am a beginner in python. I need to implement a graph with multiple
On Jun 15, 11:04 am, Ravikanth wrote:
> Hi all,
>
> I am a beginner in python. I need to implement a graph with multiple
> colors in it.
> In a way, I have a function which varies with respect to time and
> amplitude. I have time on x-axis and amplitude on y-axis. Lets say the
> amplitude of the g
On Jun 13, 4:58 pm, kafooster wrote:
> On 13 Cze, 22:52, Wanderer wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 13, 4:41 pm, kafooster wrote:
>
> > > Wanderer: by *.raw I mean images with .raw extension, pure pixel data
> > > without headerhttp:/
On Jun 13, 4:41 pm, kafooster wrote:
> Wanderer: by *.raw I mean images with .raw extension, pure pixel data
> without headerhttp://en.wikipedia.org/wiki/Raw_image_format
>
> That is a clear and nice code however I think Image.open cannot
> handle .raw since i get error
On Jun 13, 4:08 pm, Wanderer wrote:
> On Jun 13, 2:18 pm, kafooster wrote:
>
>
>
>
>
>
>
>
>
> > I am working on some medical image data, and I try to look into
> > specific slice of 3d *.raw image. I know voxels are 16 bit int, and
> > dim
On Jun 13, 2:18 pm, kafooster wrote:
> I am working on some medical image data, and I try to look into
> specific slice of 3d *.raw image. I know voxels are 16 bit int, and
> dimensions are 352*470*96. I checked it in some pro medical image
> viewer, it is alright. However, with the code I use,
On Mar 24, 3:14 pm, Wanderer wrote:
> I'm using ctypes to have a dll fill a buffer with 16 bit data. I then
> want to convert this data to a numpy array. The code snippet below
> converts the data from 16 bit to 32 bit, but two 16 bit numbers are
> concatenated to make a 32 bi
I'm using ctypes to have a dll fill a buffer with 16 bit data. I then
want to convert this data to a numpy array. The code snippet below
converts the data from 16 bit to 32 bit, but two 16 bit numbers are
concatenated to make a 32 bit number and half the array is zero.
Buffer = (c_short *
On Mar 18, 6:42 pm, Nobody wrote:
> On Fri, 18 Mar 2011 15:16:40 -0700, Wanderer wrote:
> > Thanks for the reply, but I'm still not sure I understand. Why should
> > Object1 be at address1 and Object2 be at address2 and the next moment
> > Object2 is at address1 and Ob
On Mar 18, 5:48 pm, Nobody wrote:
> On Fri, 18 Mar 2011 10:34:35 -0700, Wanderer wrote:
> > I'm observing some strange behavior with ctypes. I created this test
> > code to try to figure out what I'm doing wrong creating pointers to
> > structures.
>
> W
I'm observing some strange behavior with ctypes. I created this test
code to try to figure out what I'm doing wrong creating pointers to
structures.
from ctypes import *
class QCamSettingId(Structure):
""" QCam_settings_id
"""
_fields_ = [("f1", c_ulong),
("f2", c_usho
On Mar 17, 11:44 am, John Gordon wrote:
> In <2f4a08df-55ea-4a4e-9cc0-24e6b9f81...@f15g2000pro.googlegroups.com>
> Wanderer writes:
>
> > But when the program returns the value I can't get the key.
>
> What happens when two keys have the same value? How woul
I have a dll that to communicate with I need to send numeric codes. So
I created a dictionary. It works in one direction in that I can
address the key and get the value. But when the program returns the
value I can't get the key. This code is very simple and I could use a
list and the index except
I'm using code
def getFiles(self, fileBase):
"""return a list of the filenames in a director containing a
base word
"""
allFiles = os.listdir(self.resultDir)
baseFiles = []
for f in allFiles:
if f.find(fileBase) > 0:
baseFile
When I try to use program that uses ctypes to load a dll in Ipython. I
get
Traceback (most recent call last):
File "... \console.py" line 671, in hook_wrapper_23
res = ensire_str(readline_hook(prompt))
File "...\rlmain.py", lin 342, in readline
return self.mode.readline(prompt)
I want to give the option of changing attributes in a method or using
the current values of the attributes as the default.
class MyClass():
""" my Class
"""
def __init__(self):
""" initialize
"""
self.a = 3
self.b = 4
def MyMethod(self,
On Feb 4, 12:07 pm, Jean-Michel Pichavant
wrote:
> Wanderer wrote:
> > I have a bunch of cameras I want to run tests on. They each have
> > different drivers and interfaces. What I want to do is create python
> > wrappers so that they all have a common interface and can be c
I have a bunch of cameras I want to run tests on. They each have
different drivers and interfaces. What I want to do is create python
wrappers so that they all have a common interface and can be called by
the same python test bench program. I'm not sure what to call it. I
don't think it's inheritan
On Jan 6, 11:20 am, Dan M wrote:
> On Thu, 06 Jan 2011 08:11:34 -0800, Wanderer wrote:
> > We generate PCB assembly files in pdf format using SmartPDF. This allows
> > us to search for a component in the assembly using the find feature. We
> > would like to be able
We generate PCB assembly files in pdf format using SmartPDF. This
allows us to search for a component in the assembly using the find
feature. We would like to be able to generate a list of components
sorted by part type and then use that list to cycle through a search
by ref designator in the pdf f
1 - 100 of 117 matches
Mail list logo