Development Guide¶
Local Setup¶
python -m venv .venv
source .venv/bin/activate
pip install -e .
Run Tests¶
pytest
Build Docs¶
pip install -r docs/requirements.in
sphinx-build -b html docs docs/_build/html
Configuration and Runtime Notes¶
CLI entrypoint:
PyPIC3D.__main__:main.__main__.pycurrently forces CPU backend viajax_platform_name = cpu.Defaults are defined in
initialization.default_parametersand merged with TOML usingutils.update_parameters_from_toml.Unknown keys in
simulation_parameters/plotting/constantsare ignored by the merge helper.
Debugging Tips¶
Start with a small grid (for example
Nx=Ny=Nz=16where applicable).Increase
plotting_intervalfor faster benchmarking runs.Verify boundary-condition choices explicitly for both fields and particles.
Compare
energy_error.txtacross branches when validating changes.