choderalab / perses

Experiments with expanded ensembles to explore chemical space

Home Page:http://perses.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate instances of `self._setup_complex_phase()` in relative_setup.py

zhang-ivy opened this issue · comments

I noticed that self._setup_complex_phase() is called twice.

Iván notes that this is not super high priority since we are in the midst of overhauling the API anyway

Yes,the comment on

# We must generate the complex topology and positions before the SystemGenerator is created because if the
explains why we needed that at that instance but, as discussed, we can quickly investigate what happens if we remove the second call, since that seems redundant and it shouldn't be doing anything new.

As a reference, when I worked in the refactor for the NEQ cycling protocol, the RelativeFEPSetup.__init__ method of is more organized and it's only setting up the phases at the end of it, as per

self._setup_phases(
(just to keep in mind).