scipy.signal.convolve2d() clips off part of my image

2005-01-24 Thread mike kreiner
I'm using the convolve2d(image, mask) function from scipy to blur an image. The image I'm using is 512 by 384. When I display the image that convolve2d returns, the the left-most square of pixels (388 by 388) turn out fine, blurred and everything, however the right side of the image is all black.

Re: Another scripting language implemented into Python itself?

2005-01-24 Thread Orlando Vazquez
Jeff Shannon wrote: snip Because you cannot make Python secure against a malicious (or ignorant) user -- there's too much flexibility to be able to guard against every possible way in which user-code could harm the system. Parsing your own (limited) scripting language allows much better control

Re: Retrieving modification time of file class was declared in

2005-01-24 Thread Orlando Vazquez
[EMAIL PROTECTED] wrote: Assume I am using a class Foo. I want to find out the modification time of the file that that class was defined in. How would I go about this? If I could find out the name of the file that Foo was defined in then it is easy, I could use os.path.getmtime(), but I can't even

Re: Retrieving modification time of file class was declared in

2005-01-24 Thread Orlando Vazquez
Actually, what my comment wass supposed to say was "Checking the modification time of the file the Thread class was defined in", but I'm sure you understood what I meant. ;-) Orlando Vazquez wrote: [EMAIL PROTECTED] wrote: Assume I am using a class Foo. I want to find out the modification time o

Re: Help on project, anyone?

2005-01-24 Thread Miki Tebeka
Hello Fuzzyman, > 3) Simple Version Control program for single programmer. A very simple > way of doing version control/releases for small projects with only a > single programmer. [3] Subversion (and CVS) are dead simple to install and use. IMO in the long run you'll find yourself implementing mo

Re: Classical FP problem in python : Hamming problem

2005-01-24 Thread Francis Girard
Ok I'll submit the patch with the prose pretty soon. Thank you Francis Girard FRANCE Le mardi 25 Janvier 2005 04:29, Tim Peters a écrit : > [Francis Girard] > > > For all the algorithms that run after their tail in an FP way, like the > > Hamming problem, or the Fibonacci sequence, (but unlike Sie

Clarification on XML parsing & namespaces (xml.dom.minidom)

2005-01-24 Thread Greg Wogan-Browne
Hi all, I am having some trouble figuring out what is going on here - is this a bug, or correct behaviour? Basically, when I create an XML document with a namespace using xml.dom.minidom.parse() or parseString(), the namespace exists as an xmlns attribute in the DOM (fair enough, as it's in the

Open Folder in Desktop

2005-01-24 Thread Kamilche
Is there a command you can execute in Python that will open a window on the desktop, such as 'My Documents'? Kind of like 'system', but for folder names, not just programs. I'm running on Windows 2000. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANNOUNCE: Altova ... blah blah blah

2005-01-24 Thread X-Man
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] remove-this-xs4all.nl says... > Altova Announcements wrote: > > Altova Unveils . > [spam] > > Well now, I didn't like their products very much already, > but this spam has certainly made them drop another few > steps down on my scale. H

Re: is extending an object considered acceptable usage?

2005-01-24 Thread Terry Reedy
"mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > sometimes i want a list of categories, and from each i want to be able to > access a list of its items. in this case is it considered acceptable to > just create a list of those items and assign it as a property of their > c

Re: What's so funny? WAS Re: rotor replacement

2005-01-24 Thread Fredrik Lundh
Terry Hancock wrote: > And, well, I'm sorry Mr. Lundh, but your PIL module actually is something > of a pain to install still. The OP is right about that. Usually worth it, > but I don't > like the fact that that pain is being passed on to the end-user of my > software. > > The fact that you g

<    1   2   3