martimunicoy / peleffy

The peleffy (PELE Force Field Yielder) is a Python package that builds PELE-compatible force field templates.

Home Page:https://martimunicoy.github.io/peleffy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explanatory error messages when using an invalid Impact template

martimunicoy opened this issue · comments

Description

The method from_impact_template() requires as arguments a Molecule class and the path to the impact template to load. In case the molecule and the impact template do not represent the same chemical entity, the algorithm fails with an unspecific error message.

Solution

Check the match between Molecule representation and the impact template and prompt a specific error message in case they do not match.