choderalab / feflow

Recipes and protocols for molecular free energy calculations using the openmmtools/perses and Open Free Energy toolkits
MIT License
10 stars 1 forks source link

Enable extending NonEquilibriumCyclingProtocols #44

Open ianmkenney opened 3 months ago

ianmkenney commented 3 months ago

This PR introduces the ability to extend a NonEquilibriumCycling protocol by including serialized and compressed OpenMM State, System, and Integrator in the main simulation units. When instantiating new NonEquilbriumProtocols which extend a previous result, these objects are used to bypass the normal function of the SetupUnit. Closes #2.

dotsdl commented 2 months ago

One limitation of GufeTokenizables, including ProtocolDAGResults: they must be JSON-serializable, and therefore can't have binary data. So any outputs of a ProtocolUnit._execute method must also be data types that are JSON-serializable.

Is this the case for the outputs added in this PR?

ianmkenney commented 2 months ago

These are not json serializable. I can add another step in (de)serialization for converting to and from base64.

ianmkenney commented 2 months ago

@ijpulidos any idea why my tests fail on license keys?

ijpulidos commented 2 months ago

@ianmkenney My guess is that the secrets fail since it's coming from a fork? Let me dig around and see if there's a way to make this work.

One way would be making a separate PR in the repo, but I'll see if there's another way.

mikemhenry commented 2 months ago

@ianmkenney My guess is that the secrets fail since it's coming from a fork? Let me dig around and see if there's a way to make this work.

One way would be making a separate PR in the repo, but I'll see if there's another way.

That is exactly what is going on, the quick fix is for someone who has write access, to push this branch to the choderalab/feflow remote, that will trigger the tests to run with the secrets and since the commit hash is the same, github will report the test results here

mikemhenry commented 2 months ago

to kick off ci (you need write access to the repo for this to work)

$ gh pr checkout 44
$ git push origin feature-noneq_cycling_extends
dotsdl commented 2 months ago

This is currently blocked by #38.

ijpulidos commented 2 months ago

@ianmkenney @dotsdl Is this ready to be reviewed? If so, can you mark it as such? Thanks!

ianmkenney commented 2 months ago

@ijpulidos I think an initial review works, not sure if you want to wait for gufe/openfe v1.0.0 before merging though.

dotsdl commented 1 day ago

@ijpulidos will make another review now that #38 is in! Thanks @ijpulidos!