Re: ah, progress...

2018-12-19 Thread dieter
ant writes: > ant wrote: > ... >> (env) me@ant(26)~/src/test$ ngfp >> Traceback (most recent call last): >> File "/home/me/src/env/bin/ngfp", line 7, in >> from ngfp import main >> ImportError: cannot import name 'main' from 'ngfp' >> (/home/me/src/salsa/env/lib/python3.7/site-packages/ngf

Re: polar coordinates?

2018-12-19 Thread Brian Christiansen
On 12/19/18 12:19 PM, Dennis Lee Bieber wrote: I don't see anything in your code that makes any use of polar<>rectangular coordinate conversion -- which is what you were interested in when starting the thread. You appear to just be rastering a 15x15 rectangle (ie: the first 225 digits. I

Re: Mask two images with python

2018-12-19 Thread Oscar Benjamin
On Wed, 19 Dec 2018 at 05:42, Umar Yusuf wrote: > > Hello there, > How do I supper impose an image design on a transparent png image? > > I have tried to use OpenCV's "cv2.bitwise_and" function to no success. I > posted the detail question here: > https://stackoverflow.com/questions/53791510/pyt

Re: ah, progress...

2018-12-19 Thread ant
ant wrote: > ant wrote: > > ... > > script was there, but the package was not actually > installed. > > after installing again i get: > >= > > (env) me@ant(26)~/src/test$ ngfp > Traceback (most recent call last): > File "/home/me/src/env/bin/ngfp", line 7, in > from ngfp import main

ah, progress...

2018-12-19 Thread ant
ant wrote: ... script was there, but the package was not actually installed. after installing again i get: = (env) me@ant(26)~/src/test$ ngfp Traceback (most recent call last): File "/home/me/src/env/bin/ngfp", line 7, in from ngfp import main ImportError: cannot import name 'ma

Re: setup.py, how to find main program/module?

2018-12-19 Thread ant
dieter wrote: > ant writes: >> ... >> yet not quite all the way yet. i run the >> commands to make the sdist and wheels and upload >> it using twine to my test account, but when >> i install it and try to run it the ngfp.py is >> not found (i've also tried nfgp and main). >> ... >> i suspect

testfixtures 6.4.0 released - important bug fix! (again)

2018-12-19 Thread Chris Withers
Hi All, I'm afraid I found quite a [1]serious problem with unittest.mock.call objects that is important for users of testfixtures' MockPopen helper. This release includes a monkey patch to fix that issue as well as a facade over both unittest.mock and the rolling backport on pypi,

Re: with exceptions?

2018-12-19 Thread Marko Rauhamaa
r...@zedat.fu-berlin.de (Stefan Ram): > try: > with open( 'file', 'r' ) as f: > use( f ) > except Exception as inst: > print( inst ) > > Is target code the correct way to use »with« with together > with »except«? > > Or is it recommended to continue to use »finally« in such >