Skip to content

Add resume support to HybridTop simulation unit#1774

Open
IAlibay wants to merge 130 commits intomainfrom
restart-htop
Open

Add resume support to HybridTop simulation unit#1774
IAlibay wants to merge 130 commits intomainfrom
restart-htop

Conversation

@IAlibay
Copy link
Member

@IAlibay IAlibay commented Jan 3, 2026

Blocked by #1773
Fixes #1722

TODO:

  • Add a test where we resume the unit with an existing partially complete set of files.

Checklist

  • All new code is appropriately documented (user-facing code must have complete docstrings).
  • Added a news entry, or the changes are not user-facing.
  • Ran pre-commit by making a comment with pre-commit.ci autofix before requesting review.

Manual Tests: these are slow so don't need to be run every commit, only before merging and when relevant changes are made (generally at reviewer-discretion).

Developers certificate of origin

@IAlibay
Copy link
Member Author

IAlibay commented Feb 5, 2026

pre-commit.ci autofix

@IAlibay
Copy link
Member Author

IAlibay commented Feb 8, 2026

pre-commit.ci autofix

@IAlibay
Copy link
Member Author

IAlibay commented Feb 15, 2026

pre-commit.ci autofix

@IAlibay
Copy link
Member Author

IAlibay commented Feb 15, 2026

pre-commit.ci autofix

@github-actions
Copy link

No API break detected ✅

or (openmm.__version__ != setup_outputs["openmm_version"])
):
errmsg = "Python environment has changed, cannot continue Protocol execution."
raise ProtocolUnitExecutionError(errmsg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice check and great to see these errors being used in protocols!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be catching the keyerror here?

}

sampler_method = simulation_settings.sampler_method.lower()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be failing early here if the sampler method is not in the dict or do we no longer need the attribute error that was raised in the old code? I was thinking that the settings validation should have caught the error way before here but is it worth checking?

) -> dict[str, Any]:
log_system_probe(logging.INFO, paths=[ctx.scratch])
# Get the relevant inputs
# Ensure that we the environment hasn't changed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Ensure that we the environment hasn't changed
# Ensure that the environment hasn't changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add resume suppport to HybridTopologyProtocol run unit

3 participants