diff --git a/recipes/wake-t/meta.yaml b/recipes/wake-t/meta.yaml new file mode 100644 index 0000000000000..7a35c94993e85 --- /dev/null +++ b/recipes/wake-t/meta.yaml @@ -0,0 +1,62 @@ +{% set version = "0.7.1" %} + +package: + name: wake-t + version: {{ version }} + +source: + url: https://github.com/AngelFP/Wake-T/archive/refs/tags/v{{ version }}.tar.gz + sha256: 9386cc52ca98e272518686da3e02a690363ecde689f7b03b07aeb2ecece2ee05 + +build: + number: 0 + noarch: python + script: {{ PYTHON }} -m pip install . -vv + +requirements: + host: + - pip + - python >=3.8 + - setuptools + run: + - aptools + - numba + - numpy + - openpmd-api + - python >=3.8 + - scipy + - tqdm + +test: + requires: + - matplotlib-base + - openpmd-viewer + - python + - pytest + source_files: + - examples/ + - tests/ + imports: + - wake_t + +about: + home: https://wake-t.readthedocs.io + license: GPL-3.0-or-later + license_family: GPL3 + license_file: LICENSE + summary: A fast tracking code for plasma accelerators + + description: | + Wake-T (Wakefield particle Tracker) is a tracking code for laser- and + beam-driven plasma wakefield accelerators which aims at providing a fast + alternative to Particle-in-Cell (PIC) simulations. Instead of relying on + the computationally-expensive PIC algorithm for simulating the plasma + wakefields and the beam evolution, Wake-T uses a Runge-Kutta solver to + track the evolution of the beam electrons in the wakefields, which, at + the same time, are computed from reduced models. + dev_url: https://github.com/AngelFP/Wake-T + +extra: + recipe-maintainers: + - AngelFP + - ax3l diff --git a/recipes/wake-t/run_test.bat b/recipes/wake-t/run_test.bat new file mode 100644 index 0000000000000..3585f52b30baf --- /dev/null +++ b/recipes/wake-t/run_test.bat @@ -0,0 +1,7 @@ +@echo on + +set "OMP_NUM_THREADS=2" + +:: pytest +%PYTHON% -m pytest -s -vvvv tests\ +if errorlevel 1 exit 1 diff --git a/recipes/wake-t/run_test.sh b/recipes/wake-t/run_test.sh new file mode 100755 index 0000000000000..c7f760aae83bd --- /dev/null +++ b/recipes/wake-t/run_test.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -eu -x -o pipefail + +export OMP_NUM_THREADS=2 + +# pytest +$PYTHON -m pytest -s -vvvv tests/