Changeset 59c56fa for fedd/deter


Ignore:
Timestamp:
Aug 20, 2015 9:40:13 AM (9 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
ccfc03d
Parents:
187a8f9
Message:

Short term fix to ignore unknown elements (like regions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/deter/topdl.py

    r187a8f9 r59c56fa  
    757757        self.elements = [ self.init_element(e) \
    758758                for e in self.make_list(elements) ]
     759        #Weed out unknown elements
     760        self.elements = [ e for e in self.elements if e is not None ]
    759761        self.attribute = [ self.init_class(Attribute, c) \
    760762                for c in self.make_list(attribute) ]
     
    936938    else:
    937939        return None
    938 
    939940    return Topology(**p.current[top])
    940941
Note: See TracChangeset for help on using the changeset viewer.