Skip to content

Edited StageHipace.track() to store the HiPACE++ input file#202

Merged
ben-c-2013 merged 1 commit into
mainfrom
StageHipace_keep_input_file
Mar 3, 2026
Merged

Edited StageHipace.track() to store the HiPACE++ input file#202
ben-c-2013 merged 1 commit into
mainfrom
StageHipace_keep_input_file

Conversation

@ben-c-2013

Copy link
Copy Markdown
Collaborator

No description provided.

@ben-c-2013 ben-c-2013 requested a review from kyrsjo February 23, 2026 14:20
@ben-c-2013 ben-c-2013 added the enhancement New feature or request label Feb 23, 2026

def track(self, beam_incoming, savedepth=0, runnable=None, verbose=False):
"""
Track the particles through the stage.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add documentation about the meaning of the arguments. E.g. what is runnable?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nevermind - defined in older generation class.

self.stage_number = beam_incoming.stage_number

# Set the diagnostics directory
if runnable is not None and self.run_path is None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What happens if runnable is not None and run_path is not None, but they are inconsistent?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nevermind

@kyrsjo

kyrsjo commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

See comments.

@ben-c-2013 ben-c-2013 merged commit af8ce8b into main Mar 3, 2026
1 check passed
@ben-c-2013 ben-c-2013 deleted the StageHipace_keep_input_file branch March 3, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants