Skip to content

Conversation

@nilsvu
Copy link
Member

@nilsvu nilsvu commented Jun 6, 2023

Proposed changes

Preparation for #4996 to make that PR a bit smaller.

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@nilsvu nilsvu requested review from knelli2 and wthrowe June 6, 2023 17:14
@nilsvu
Copy link
Member Author

nilsvu commented Jun 6, 2023

@wthrowe @knelli2 we can do this subset of #4996 first to make the other PR a bit smaller.

@nilsvu nilsvu force-pushed the py_schedule_prepare branch from 6daeaa1 to ba9942c Compare June 6, 2023 17:22
Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

Should you include the changes to Main that actually change the checkpoint structure in this PR?

Comment on lines +241 to +242
# Keep only latest in a series of segments
job_data[["SegmentsDir", "SegmentId"]] = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a column that prints what segment we are on? I think that could be useful. Then we don't have to include it in the job name like SpEC does.

Copy link
Member Author

Choose a reason for hiding this comment

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

I had that before but didn't find it particularly useful. I can add it if you want though. Not sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

For long runs I think it'd be useful. It's a very quick way to know how many times the simulation has restarted.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right but is it useful to know the number of restarts? I don't know. Remember we have limited space in the terminal, so adding a column means things like the job name get truncated further.

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like it should be an option. Everybody is going to want to see different things, so maybe (for a later PR) we should take the fields to print as arguments so users can customize them in their spectre.yaml file

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea that would be nice

@nilsvu
Copy link
Member Author

nilsvu commented Jun 6, 2023

Moved the changes to Main to #5079

@nilsvu nilsvu force-pushed the py_schedule_prepare branch 2 times, most recently from 8cecf17 to c1257db Compare June 7, 2023 18:06
@nilsvu
Copy link
Member Author

nilsvu commented Jun 9, 2023

@wthrowe could you take this?

self.test_dir = Path(
unit_test_build_path(), "support/DirectoryStructure"
)
self.test_dir.mkdir(parents=True, exist_ok=True)
Copy link
Member

Choose a reason for hiding this comment

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

Delete any preexisting files.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok fixed

@nilsvu nilsvu force-pushed the py_schedule_prepare branch from c1257db to 63f6b9a Compare June 9, 2023 20:45
@nilsvu
Copy link
Member Author

nilsvu commented Jun 12, 2023

@wthrowe I think this is ready to go as well. @knelli2 is on vacation this week and we can make any changes to the status CLI in follow-ups if we want to.

@wthrowe
Copy link
Member

wthrowe commented Jun 14, 2023

Agreed. I don't see @knelli2's request as blocking.

@wthrowe wthrowe merged commit bac4fd2 into sxs-collaboration:develop Jun 14, 2023
@nilsvu nilsvu deleted the py_schedule_prepare branch June 14, 2023 20:16
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.

3 participants