mphowardlab / relentless

Computational materials design, with less code.
https://relentless.readthedocs.io
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Refactor potential tabulators #190

Closed mphoward closed 1 year ago

mphoward commented 1 year ago

This PR refactors the way pair potentials are attached to make it more explicit that they are tabulated, and how the tabulation is done.

I also removed the fmax option to PairPotentialTabulator. It is currently rarely used, and since the energy/derivative are not adjusted to account for fmax, this could lead to correctness issues in relative entropy optimization. We can reimplement this one day if we need it.

Miscellaneous: hides the _validate method of the tabulator so it does not show up in documentation.

Fixes #185