Skip to content

read_csv does not work for species name with a comma #1372

@BangShiuh

Description

@BangShiuh

Problem description

read_csv does not properly handle a comma in a species name.
Ex. CH(1,3).

gas = ct.Solution("gri30_mod.yaml")
states = ct.SolutionArray(gas)
gas.TPX = 300, ct.one_atm, "O2:1.0"
states.append(gas.state)
states.write_csv("output.csv")
states2 = ct.SolutionArray(gas)
states2.read_csv("output.csv")

Line #2 (got "x" columns instead of "x+1")
x is the number of variables.

System information

  • Cantera version: 3.0.0

Attachments

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions