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
Add support for resuming with CLI/YAML #830
Conversation
Not sure why it can't find the file, this works for me locally:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! It certainly helps when resuming from CLI/YAML files. However, we should keep in mind that maybe only changing and checking the iterations is not enough. What if the simulation crashes and/or other parameters are changed before trying to resume?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test for whether repex can be resumed no longer actually tests resuming: It just runs perses once. We need to run it once, stop it early (or extend it after it finishes), and then run it again, and demonstrate that works gracefully. We should fix the test, make sure it works, then merge.
I'll use an f-string, but I agree that using pathlib stuff is best when dealing with paths since it can make sure the separators are correct and while paths are string like, its best to treat them more a separate thing. I just was doing this with the least amount of effort so I coped the line here
I'll get the test working as well, it passed for me locally but then failed on GHA so I commented it out so if we needed this today it could be merged in. I'm working on fixing the tests now :) |
@mikemhenry : One issue could be that the OpenEye license files are not being found, which I think means that the
I think this means this test is failing to generate any output the first time because of a failure to find the license file in the |
@mikemhenry I think the tests are expecting this |
@ijpulidos it is created when we run the yaml file |
AHH I forgot how subprocess will have a different env, I bet that is it @jchodera, testing now! |
I am also going to quickly add |
If this last fix doesn't work, I will copy the license into the local dir where these tests are running. |
🎉 okay it is passing now! This is what I get for doing TDD locally instead of on GHA 🤷 |
@ijpulidos @jchodera would you mind taking a quick look again? Really the only changes were made to the testing, but I did add functionality for reading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice changes, good to see the debugging levels capabilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
No description provided.