From d3615c5bef8e5f15e147f301cb2809bf842ffc80 Mon Sep 17 00:00:00 2001 From: David Grote Date: Fri, 22 Jan 2021 17:17:14 -0800 Subject: Cleaned up field diagnostic in picmi interface (#1649) --- Python/pywarpx/picmi.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 7eb4eeaec..c97be09e8 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -770,7 +770,7 @@ class Simulation(picmistandard.PICMI_Simulation): # ---------------------------- -class _WarpX_FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): +class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): def init(self, kw): self.plot_raw_fields = kw.pop('warpx_plot_raw_fields', None) @@ -858,16 +858,7 @@ class _WarpX_FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): self.diagnostic.file_prefix = write_dir + '/' + file_prefix -class FieldDiagnostic(_WarpX_FieldDiagnostic, picmistandard.PICMI_FieldDiagnostic): - pass - - -class ElectrostaticFieldDiagnostic(_WarpX_FieldDiagnostic, picmistandard.PICMI_ElectrostaticFieldDiagnostic): - def initialize_inputs(self): - if 'phi' in self.data_list: - # --- phi is not supported by WarpX, but is in the default data_list - self.data_list.remove('phi') - _WarpX_FieldDiagnostic.initialize_inputs(self) +ElectrostaticFieldDiagnostic = FieldDiagnostic class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic): -- cgit v1.2.3