comp-imaging / ProxImaL

A domain-specific language for image optimization.
MIT License
114 stars 29 forks source link

Variable.__init__ fails with shape given as list #3

Closed adler-j closed 8 years ago

adler-j commented 8 years ago

Steps to reproduce:

>>> x = proximal.Variable([2, 2])
TypeError: can only concatenate list (not "tuple") to list
SteveDiamond commented 8 years ago

I don't get the same error. What version of Python are you using? I made a change that hopefully fixes this bug anyway.

adler-j commented 8 years ago

Python 2.7 running on windows 10. I'll see if the updated version still has the fix later today.

aringh commented 8 years ago

I don't get the error on my ubuntu 14.04 machine. I installed ProxImaL from git, and the last commit is a843b5be.

>>> import proximal
>>> x = proximal.Variable([2, 2])
>>> x
<proximal.lin_ops.variable.Variable object at 0x7f840cbf3450>
adler-j commented 8 years ago

This now works on my machine as well. Should be closable.