Skip to content

Commit ad7b4b8

Browse files
committed
Fix TypeError in PhaseSpace and Auto by adding simulation_box parameter
1 parent 9fa691c commit ad7b4b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/python/picongpu/picmi/diagnostics/auto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
This file is part of PIConGPU.
33
Copyright 2025 PIConGPU contributors
4-
Authors: Pawel Ordyna
4+
Authors: Pawel Ordyna, Masoud Afshari
55
License: GPLv3+
66
"""
77

@@ -42,6 +42,7 @@ def get_as_pypicongpu(
4242
dict_species_picmi_to_pypicongpu: dict[PICMISpecies, PyPIConGPUSpecies],
4343
time_step_size,
4444
num_steps,
45+
simulation_box=None, # Added to match OpenPMD signature, not used
4546
) -> PyPIConGPUAuto:
4647
self.check()
4748
pypicongpu_auto = PyPIConGPUAuto()

lib/python/picongpu/picmi/diagnostics/phase_space.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def get_as_pypicongpu(
7676
dict_species_picmi_to_pypicongpu: dict[PICMISpecies, PyPIConGPUSpecies],
7777
time_step_size,
7878
num_steps,
79+
simulation_box=None, # Added to match OpenPMD signature, not used
7980
) -> PyPIConGPUPhaseSpace:
8081
self.check()
8182

0 commit comments

Comments
 (0)