Skip to content

Commit

Permalink
ENH: Add '-' character as possible phase name character
Browse files Browse the repository at this point in the history
Verified that this is possible in TC. Note that '.' is *NOT* a valid
character.
  • Loading branch information
bocklund committed Nov 30, 2017
1 parent b9de6fe commit a46cbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycalphad/io/tdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _tdb_grammar(): #pylint: disable=R0914
.setParseAction(lambda t: [float(t[0])])
# symbol name, e.g., phase name, function name
symbol_name = Word(alphanums+'_:', min=1)
ref_phase_name = symbol_name = Word(alphanums+'_:()/', min=1)
ref_phase_name = symbol_name = Word(alphanums+'_-:()/', min=1)
# species name, e.g., CO2, AL, FE3+
species_name = Word(alphanums+'+-*/_.', min=1) + Optional(Suppress('%'))
# constituent arrays are colon-delimited
Expand Down

0 comments on commit a46cbda

Please sign in to comment.