Skip to content

[WIP] Add PICMI interface for BoundaryScrapingDiagnostic #4383

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

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

RemiLehe
Copy link
Member

No description provided.

@RemiLehe RemiLehe marked this pull request as draft October 17, 2023 22:08
@RemiLehe RemiLehe changed the title Add PICMI interface for BoundaryScrapingDiagnostic [WIP] Add PICMI interface for BoundaryScrapingDiagnostic Oct 17, 2023
"""
def init(self, kw):

self.format = kw.pop('warpx_format', 'plotfile')
Copy link
Member Author

Choose a reason for hiding this comment

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

These parts should be in the base class, as they are used across many diagnostics.

self.diagnostic.openpmd_backend = self.openpmd_backend
self.diagnostic.file_min_digits = self.file_min_digits
self.diagnostic.intervals = self.period
self.diagnostic.particles_at_eb = 1
Copy link
Member Author

Choose a reason for hiding this comment

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

This should be in a parent PICMI class


# --- Use a set to ensure that fields don't get repeated.
variables = set()

Copy link
Member Author

Choose a reason for hiding this comment

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

The code below should be in the WarpXDiagnostic parent class, since it is used across many diagnostics

@ax3l ax3l added component: Python Python layer component: boundary PML, embedded boundaries, et al. labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: boundary PML, embedded boundaries, et al. component: Python Python layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants