Generate jpg files using line length (pixels) and orientation (degrees)
Dan Sommers
dan at tombstonezero.net
Fri Jan 9 17:21:19 EST 2015
> 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", line 40, in makeimg
> orientation = orientation % 180
> TypeError: not all arguments converted during string formatting
>>>>
My guess is that orientation contains a string that doesn't contain a '%'
character:
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 'this is a string' % 180
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
More information about the Python-list
mailing list