unflatten crashes on an empty larry

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

Bug Description

unflatten crashes on an empty larry:

>> y = larry([])
>> y.unflatten()
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)

/home/kg/<ipython console> in <module>()

/ba/devel/larry/la/deflarry.pyc in unflatten(self)
   3013 if self.ndim != 1:
   3014 raise ValueError, 'Only 1d larrys can be unflattened.'
-> 3015
   3016 if self.shape == (0,):
   3017 return larry([])

IndexError: invalid index

kwgoodman (kwgoodman)
Changed in larry:
milestone: none → 0.2
assignee: nobody → kwgoodman (kwgoodman)
importance: Undecided → Medium
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.