Skip to content

Commit edf21c7

Browse files
authored
Merge pull request #154 from dpploy/valmor
Phase bug fix.
2 parents beefec4 + 8d5a1a6 commit edf21c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cortix/support/phase.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ def AddSpecie(self, new_specie):
409409
assert new_specie.name not in list(self.__phase.columns), \
410410
'new_specie: %r exists. Current names: %r' % \
411411
(new_specie, self.__phase.columns)
412-
speciesFormulae = [specie.formulaName for specie in self.__species]
413-
assert new_specie.formulaName not in speciesFormulae
412+
speciesFormulae = [specie.formula_name for specie in self.__species]
413+
assert new_specie.formula_name not in speciesFormulae
414414
self.__species.append(new_specie)
415415
newName = new_specie.name
416416
col = pandas.DataFrame( index=list(self.__phase.index), columns=[newName] )
@@ -750,7 +750,7 @@ def WriteHTML(self, fileName):
750750
if col in speciesNames:
751751
idx = speciesNames.index(col)
752752
specie = self.__species[idx]
753-
tmp.rename(columns={col: specie.formulaName}, inplace=True)
753+
tmp.rename(columns={col: specie.formula_name}, inplace=True)
754754
elif col in quantityNames:
755755
idx = quantityNames.index(col)
756756
quant = self.__quantities[idx]

0 commit comments

Comments
 (0)