Changeset 678 for mds-and-trees


Ignore:
Timestamp:
08/27/17 15:11:36 (7 years ago)
Author:
konrad
Message:

Fixed a bug attempting to normalize a list of lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mds-and-trees/tree-genealogy.py

    r677 r678  
    577577
    578578    def normalize_prop(self, prop):
    579         noneless = [v for v in self.props[prop] if type(v)!=str]
     579        noneless = [v for v in self.props[prop] if (type(v)!=str and type(v)!=list)]
    580580        if len(noneless) > 0:
    581581            max_val = max(noneless)
Note: See TracChangeset for help on using the changeset viewer.