Skip to content

Add restart_at_step for ExternalEngine (for numeric filenames) - #1105

Merged
dwhswenson merged 5 commits into
openpathsampling:masterfrom
sroet:issue_1101
Oct 2, 2024
Merged

dwhswenson merged 5 commits into
openpathsampling:masterfrom
sroet:issue_1101

Conversation

@sroet

@sroet sroet commented Feb 3, 2022 •

Copy link
Copy Markdown
Member

with #1103 and #1102, I believe this implements the last thing discussed in #1101:

It adds a restart_at_step for ExternalEngines, which (if self.filename_setter is FilenameSetter) set's it's count to the last written trajectory + 1

this will error out if it tries to read filenames that don't end in a number, for now a ValueError: invalid literal for int() with base 10: '', but this can be updated to make it more clear.

Also updated the AD gromacs example to include the required restart code.

@sroet
sroet requested a review from dwhswenson February 3, 2022 16:54
@codecov

codecov Bot commented Feb 3, 2022 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.31%. Comparing base (f1e8961) to head (4fae88a).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1105      +/-   ##
==========================================
+ Coverage   81.28%   81.31%   +0.02%     
==========================================
  Files         142      142              
  Lines       15643    15661      +18     
==========================================
+ Hits        12716    12735      +19     
+ Misses       2927     2926       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dwhswenson

Copy link
Copy Markdown
Member

@sroet : I seem to be having trouble updating this PR to the new master: can you pull in the upstream changes and push to this branch? Just want to get a fresh CI run to make sure everything is still fine.

I'm also trying to find anything else that should be put into a 1.7 release; this seemed to be the only PR that was really needed. (I think 1.8 is going to focus a lot of storage stuff, so I'll put storage handlers into that.)

@sroet

sroet commented Sep 30, 2024

Copy link
Copy Markdown
Member Author

@sroet : I seem to be having trouble updating this PR to the new master: can you pull in the upstream changes and push to this branch? Just want to get a fresh CI run to make sure everything is still fine.

I clicked the sync fork button on this branch, it seemed to have behaved reasonably 😄

@dwhswenson dwhswenson changed the title resolve Issue 1101 Add restart_at_step for ExternalEngine (for numeric filenames) Oct 2, 2024

@dwhswenson dwhswenson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code looks fine, and now tested against recent updates!

@dwhswenson
dwhswenson merged commit 4695624 into openpathsampling:master Oct 2, 2024
@dwhswenson dwhswenson mentioned this pull request Oct 2, 2024
@sroet
sroet deleted the issue_1101 branch October 3, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants