Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTCapableHybridTopologyFactory working with small molecules #1045

Merged
merged 2 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion perses/app/setup_relative_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def run_setup(setup_options, serialize_systems=True, build_samplers=True):
hybrid_factory=htf[phase], online_analysis_interval=setup_options['offline-freq'],
)
hss[phase].setup(n_states=n_states, temperature=temperature, storage_file=reporter,
lambda_protocol=lambda_protocol, endstates=endstates)
endstates=endstates)
# We need to specify contexts AFTER setup
hss[phase].energy_context_cache = energy_context_cache
hss[phase].sampler_context_cache = sampler_context_cache
Expand Down
4 changes: 2 additions & 2 deletions perses/samplers/multistate.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def setup(self, n_states, temperature, storage_file, minimisation_steps=100,

# Retrieve class name, hybrid system, and hybrid positions
factory_name = self._hybrid_factory.__class__.__name__
hybrid_system = self._factory.hybrid_system
positions = self._factory.hybrid_positions
hybrid_system = self._hybrid_factory.hybrid_system
positions = self._hybrid_factory.hybrid_positions

# Create alchemical state and lambda protocol
if factory_name == 'HybridTopologyFactory':
Expand Down