uw-cmg / MAST

MAterials Simulation Toolkit for use with pymatgen
17 stars 8 forks source link

input parser handle blank line before first section #444

Closed cmgtam closed 7 years ago

cmgtam commented 8 years ago

A blank line at the very beginning of the input file between the comment block and the first section (usually $mast) will cause the input parser to crash with section_name referenced before assignment, since section_name is not yet set.

Could either set section_name to "" or make a case statement to handle blank lines before getting to the elif section_name not recipe or personal_recipe point. (near line 134)