Skip to content

Commit aedc4d4

Browse files
committed
Reviewer comments
1 parent 854c131 commit aedc4d4

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/python/picongpu/picmi/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"GaussianLaser",
4646
"PlaneWaveLaser",
4747
"Species",
48-
"Species",
4948
"PseudoRandomLayout",
5049
"GriddedLayout",
5150
"constants",

lib/python/picongpu/picmi/simulation.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,8 @@ def __init__(
188188
picongpu_binomial_current_interpolation: bool = False,
189189
**keyword_arguments,
190190
):
191-
self.species = []
192-
self.layouts = []
193191
self.picongpu_distributions = []
194192
self.picongpu_template_dir = _normalise_template_dir(picongpu_template_dir)
195-
self.picongpu_typical_ppc = picongpu_typical_ppc
196193
self.picongpu_moving_window_move_point = picongpu_moving_window_move_point
197194
self.picongpu_moving_window_stop_iteration = picongpu_moving_window_stop_iteration
198195
self.picongpu_interaction = picongpu_interaction
@@ -202,10 +199,11 @@ def __init__(
202199
self.picongpu_custom_user_input = None
203200
self.__runner = None
204201

205-
picmistandard.PICMI_Simulation.__init__(self, **keyword_arguments)
206-
207202
if picongpu_typical_ppc is not None and picongpu_typical_ppc <= 0:
208-
raise ValueError(f"Typical ppc should be > 0, not {self.picongpu_typical_ppc=}.")
203+
raise ValueError(f"Typical ppc should be > 0, not {picongpu_typical_ppc=}.")
204+
self.picongpu_typical_ppc = picongpu_typical_ppc
205+
206+
picmistandard.PICMI_Simulation.__init__(self, **keyword_arguments)
209207

210208
# additional PICMI stuff checks, @todo move to picmistandard, Brian Marre, 2024
211209
## throw if both cfl & delta_t are set

0 commit comments

Comments
 (0)