larry.keep_label crashes when there is nothing to keep

Bug #518135 reported by kwgoodman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
larry
Fix Released
Medium
kwgoodman

Bug Description

>> y = la.larry([1, 2])
>> y.keep_label('==', 99, axis=0) # <--- Nothing to keep
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)

/ba/devel/larry/<ipython console> in <module>()

/ba/devel/larry/la/deflarry.pyc in keep_label(self, op, value, axis)
   1730 cmd = cmd + op + ' value]'
   1731 idxlabel = eval(cmd)
-> 1732 idx, label = zip(*idxlabel)
   1733 y.label[axis] = list(label)
   1734 index = [slice(None,None,None)] * self.ndim

ValueError: need more than 0 values to unpack

kwgoodman (kwgoodman)
Changed in larry:
milestone: none → 0.2
importance: Undecided → Medium
assignee: nobody → kwgoodman (kwgoodman)
kwgoodman (kwgoodman)
Changed in larry:
status: New → Fix Committed
kwgoodman (kwgoodman)
Changed in larry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.