def get_cantera_composition_string(self, species_conversion=None):
if self.composition_type in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>factor = <NUM_LIT:1.0><EOL><DEDENT>elif self.composition_type == '<STR_LIT>':<EOL><INDENT>factor = <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(self.composition_type))<EOL><DEDENT>if species_conversion is None:<EOL><INDENT>comps = ['<STR_LIT>'.format(c.species_name,<EOL>c.amount.magnitude/factor) for c in self.composition.values()]<EOL><DEDENT>else:<EOL><INDENT>comps = []<EOL>for c in self.composition.values():<EOL><INDENT>amount = c.amount.magnitude/factor<EOL>idents = [getattr(c, s, False) for s in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']]<EOL>present = [i in species_conversion for i in idents]<EOL>if not any(present):<EOL><INDENT>comps.append('<STR_LIT>'.format(c.species_name, amount))<EOL><DEDENT>else:<EOL><INDENT>if len([i for i in present if i]) > <NUM_LIT:1>:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(<EOL>c.species_name))<EOL><DEDENT>ident = idents[present.index(True)]<EOL>species_replacement_name = species_conversion.pop(ident)<EOL>comps.append('<STR_LIT>'.format(species_replacement_name, amount))<EOL><DEDENT><DEDENT>if len(species_conversion) > <NUM_LIT:0>:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(species_conversion))<EOL><DEDENT><DEDENT>return '<STR_LIT:U+002CU+0020>'.join(comps)<EOL>
Get the composition in a string format suitable for input to Cantera.

        Returns a formatted string no matter the type of composition. As such, this method
        is not recommended for end users; instead, prefer the `get_cantera_mole_fraction`
        or `get_cantera_mass_fraction` methods.

        Arguments:
            species_conversion (`dict`, optional): Mapping of species identifier to a
                species name. This argument should be supplied when the name of the
                species in the ChemKED YAML file does not match the name of the same
                species in a chemical kinetic mechanism. The species identifier (the key
                of the mapping) can be the name, InChI, or SMILES provided in the ChemKED
                file, while the value associated with a key should be the desired name in
                the Cantera format output string.

        Returns:
            `str`: String in the ``SPEC:AMT, SPEC:AMT`` format

        Raises:
            `ValueError`: If the composition type of the `DataPoint` is not one of
                ``'mass fraction'``, ``'mole fraction'``, or ``'mole percent'``