need help with a multiloop error

MRAB google at mrabarnett.plus.com
Wed Apr 22 10:30:35 EDT 2009


Brian wrote:
> I'm trying to run a python program with a multiloop and I am getting
> this error message.  I was wondering if anyone could tell from this
> message what I'm doing wrong or where I've made a mistake.  Let me
> know if you need some of the code for this to make more sense.  Thanks
> a lot.
> 
> 
> How much labor time does each individual have?8
> 1331
> Traceback (most recent call last):
> 
>   File "C:\Python25\commodity\commoditytrading4.2.py <http://
> commoditytrading4.2.py> ", line 233, in <module>
> 
>     options = mp.options(all,names)
>   File "C:\Python25\commodity\multipleloop.py", line 265, in options
>     for name, value in zip(names, experiment)]))
>   File "C:\Python25\commodity\misc.py", line 244, in str2obj
>     b = str2bool(s)
>   File "C:\Python25\commodity\misc.py", line 155, in str2bool
>     (s, type(s))
> TypeError: 0.0 <type 'float'> cannot be converted to bool
> 
What is str2bool? Having the code would definitely help!



More information about the Python-list mailing list