Changeset 2180 for TI02-CSML/trunk


Ignore:
Timestamp:
19/02/07 14:12:24 (13 years ago)
Author:
domlowe
Message:

fix for dgDataSetType nameclash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csml2Moles/molesReadWrite.py

    r2169 r2180  
    7070            if child.attrib.has_key('name'):         
    7171                if child.attrib['name'][-4:]=='Type': 
    72                     childname=child.attrib['name'][:-4] 
     72                    if child.attrib['name'] in ['dgDataSetType']:  #add other rogue 'names' ending in Type to this list 
     73                        childname=child.attrib['name'] 
     74                    else: 
     75                        childname=child.attrib['name'][:-4] 
    7376                else: 
    7477                    childname=child.attrib['name']         
Note: See TracChangeset for help on using the changeset viewer.