Empty formulas (pseudo-pures for instance) show up as not applicable now

This commit is contained in:
Ian Bell
2015-04-26 16:58:52 -06:00
parent 267bdcd1be
commit e74044d496

View File

@@ -140,7 +140,11 @@ class FluidInfoTableGenerator(object):
CAS = CoolProp.CoolProp.get_fluid_param_string(self.name, "CAS")
ASHRAE = CoolProp.CoolProp.get_fluid_param_string(self.name, "ASHRAE34")
formula = ':math:`' + CoolProp.CoolProp.get_fluid_param_string(self.name, "formula") + '`'
formula = CoolProp.CoolProp.get_fluid_param_string(self.name, "formula")
if formula:
formula = ':math:`' + formula + '`'
else:
formulat = 'Not applicable'
# Generate (or not) the reducing data
reducing_data = ''