summaryrefslogtreecommitdiff
path: root/python/src/_cdec.pyx
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2013-06-02 14:55:53 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2013-06-02 14:55:53 -0400
commit8ef5c9b0e15c45b09a22fd89a4ed7b0e180a9d2b (patch)
tree6b594a485a0fea36c1765e58c9c13b95600950d0 /python/src/_cdec.pyx
parentcd5190d525b911c8fecd50ada5f57d879bcd9779 (diff)
Possible fix for #13
- use IntList .len instead of len() which can return long - a bit of code cleanup - upgrade to Cython 0.19
Diffstat (limited to 'python/src/_cdec.pyx')
-rw-r--r--python/src/_cdec.pyx1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/src/_cdec.pyx b/python/src/_cdec.pyx
index 71e083e4..47d0c739 100644
--- a/python/src/_cdec.pyx
+++ b/python/src/_cdec.pyx
@@ -72,7 +72,6 @@ cdef class Decoder:
if isinstance(weights, DenseVector):
self.weights.vector[0] = (<DenseVector> weights).vector[0]
elif isinstance(weights, SparseVector):
- self.weights.vector.clear()
((<SparseVector> weights).vector[0]).init_vector(self.weights.vector)
elif isinstance(weights, dict):
self.weights.vector.clear()