ReactionMechanismGenerator / RMG-website

A Django-powered website for Reaction Mechanism Generator (RMG)
Other
21 stars 29 forks source link

Fix typo in processing Wilhoit thermo that leads to AttributeError #227

Closed jonwzheng closed 3 years ago

jonwzheng commented 3 years ago

Issue

When searching for species involving Wilhoit thermo, the website will crash upon rendering the thermo view, citing an AttributeError.

Recreate issue

Search "CCC" in the Molecule Search --> Search Thermochemistry leads to the AttributeError. Example here This affects ~20 species, generally those with thermo from the Chlorination library.

Fix

The issue is caused by a minor typo in render_thermo.py. The attribute heat capacity is capitalized, not lowercase. I have verified on a local instance of the website that this fixes the error.