Skip to content

Commit ff535dd

Browse files
committed
Reviewer comments
1 parent 854c131 commit ff535dd

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
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

lib/python/picongpu/picmi/species.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ class ParticleShape(Enum):
3838

3939

4040
class PusherMethod(Enum):
41-
# supported by standard and PIConGPU
41+
# supported by PICMI standard and PIConGPU
4242
Boris = "Boris"
4343
Vay = "Vay"
4444
HigueraCary = "Higuera-Cary"
4545
Free = "free"
4646
ReducedLandauLifshitz = "LLRK4"
47-
# not supported by standard
47+
# only supported by PIConGPU
4848
Acceleration = "Acceleration"
4949
Photon = "Photon"
5050
Probe = "Probe"

0 commit comments

Comments
 (0)