Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-11 Thread semeon . risom
On Saturday, 10 January 2015 21:31:25 UTC-6, Denis McMahon wrote: On Fri, 09 Jan 2015 09:49:25 -0800, semeon.risom wrote: Thank you for the help btw. I think I'm close to a solution, but I'm having issue feeding the coordinates from my csv file into the formula. This is the error I

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-11 Thread Denis McMahon
On Sun, 11 Jan 2015 11:41:28 -0800, semeon.risom wrote: The code is working correctly. Thank you! The only change I had to make was referring to it as a float instead of an integer. The images are generating, however I'm noticing that it's making an image for every possible pair in each

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-11 Thread Dave Angel
On 01/11/2015 02:41 PM, semeon.ri...@gmail.com wrote: On Saturday, 10 January 2015 21:31:25 UTC-6, Denis McMahon wrote: # using lists of values for length in a: for orientation in b: makeimg(length, orientation) -- Denis McMahon, denismfmcma...@gmail.com The code is working

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-10 Thread Denis McMahon
On Fri, 09 Jan 2015 09:49:25 -0800, semeon.risom wrote: Thank you for the help btw. I think I'm close to a solution, but I'm having issue feeding the coordinates from my csv file into the formula. This is the error I get: Traceback (most recent call last): File

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Joel Goldstick
On Fri, Jan 9, 2015 at 12:49 PM, semeon.ri...@gmail.com wrote: On Thursday, 8 January 2015 20:54:38 UTC-6, Denis McMahon wrote: On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: On Thu, 08 Jan 2015 09:09:18 -0800, semeon.risom wrote: Simple question. I hope. . To

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread semeon . risom
On Thursday, 8 January 2015 20:54:38 UTC-6, Denis McMahon wrote: On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: On Thu, 08 Jan 2015 09:09:18 -0800, semeon.risom wrote: Simple question. I hope. . To follow up, below is a solution to the problem you stated.

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread semeon . risom
On Friday, 9 January 2015 12:18:46 UTC-6, Joel Goldstick wrote: On Fri, Jan 9, 2015 at 12:49 PM, semeon...@gmail.com wrote: On Thursday, 8 January 2015 20:54:38 UTC-6, Denis McMahon  wrote: On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: On Thu, 08 Jan 2015 09:09:18

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Dan Sommers
Unfortunately getting a new error. Traceback (most recent call last): File C:\Users\Owner\Desktop\Stimuli Generation\Coordinates\Generate_w corr.py, line 68, in module makeimg(length, orientation) File C:\Users\Owner\Desktop\Stimuli Generation\Coordinates\Generate_w corr.py,

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Mark Lawrence
On 09/01/2015 21:51, semeon.ri...@gmail.com wrote: [As per Dave Angel snip all the double spaced nonsence] Please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Dave Angel
On 01/09/2015 04:51 PM, semeon.ri...@gmail.com wrote: On Friday, 9 January 2015 12:18:46 UTC-6, Joel Goldstick wrote: On Fri, Jan 9, 2015 at 12:49 PM, semeon...@gmail.com wrote: (double-spaced nonsense mostly trimmed) i = 0 a = [] b = [] What are a and b supposed to contain? Please

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-08 Thread Denis McMahon
On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: On Thu, 08 Jan 2015 09:09:18 -0800, semeon.risom wrote: Simple question. I hope. . To follow up, below is a solution to the problem you stated. #!/usr/bin/python import Image, ImageDraw, math def makeimg(length, orientation):

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-08 Thread Denis McMahon
On Thu, 08 Jan 2015 09:09:18 -0800, semeon.risom wrote: Simple question. I hope. . We just covered this in the PHP newsgroup where you were trying to use a PHP library to generate these images. As your library code is written in PHP, I suggest you return to the discussion there unless

Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-08 Thread semeon . risom
Hello - Simple question. I hope. I have 600 images (jpg) I am trying to generate. Each image will be made up of a line, with specific orientation (degrees) and length values (pixel). The background will be white (rgb: 255,255,255). I'm hoping each will have a name that corresponds to these