[ck2cti] Duplicate tranpsort properties are now only a warning by default
For consistency with the Chemkin parser, the first set of transport properties found are used.
This commit is contained in:
parent
994acf84ea
commit
1eec20baf0
1 changed files with 5 additions and 3 deletions
|
|
@ -1457,9 +1457,11 @@ def parseTransportData(lines, speciesList):
|
|||
|
||||
speciesName = data[0]
|
||||
if speciesName in speciesDict:
|
||||
if speciesDict[speciesName].transport is not None:
|
||||
raise InputParseError('Duplicate transport data given for species "{0}".'.format(speciesName))
|
||||
speciesDict[speciesName].transport = TransportData(*data)
|
||||
if speciesDict[speciesName].transport is None:
|
||||
speciesDict[speciesName].transport = TransportData(*data)
|
||||
else:
|
||||
logging.warning('Ignoring duplicate transport data'
|
||||
' for species "{0}".'.format(speciesName))
|
||||
|
||||
|
||||
def writeCTI(elements,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue