pr-omethe-us / PyKED

Python interface to the ChemKED database format
https://pr-omethe-us.github.io/PyKED/
BSD 3-Clause "New" or "Revised" License
15 stars 15 forks source link

Cantera composition convenience functions return wrong format #72

Closed kyleniemeyer closed 7 years ago

kyleniemeyer commented 7 years ago

Code sample, preferably able to be copy-pasted and run with no changes

From inside the PyKED source directory,

from pyked.chemked import ChemKED
properties = ChemKED('pyked/tests/testfile_st.yaml')
properties.datapoints[0].get_cantera_mole_fraction()

Expected behavior

Cantera requires no space between the reactant and amount, like 'H2:4.4400e-03, O2:5.5600e-03, Ar:9.9000e-01' (though it seems like it shouldn't, but that's the way it behaves now)

Actual behavior, including any error messages

The above returns 'H2: 4.4400e-03, O2: 5.5600e-03, Ar: 9.9000e-01'

PyKED/ChemKED version, Python version, OS version

PyKED version 0.2.0