Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Wake-T #24760

Merged
merged 5 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions recipes/wake-t/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions recipes/wake-t/run_test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo on
ax3l marked this conversation as resolved.
Show resolved Hide resolved

set "OMP_NUM_THREADS=2"

:: pytest
%PYTHON% -m pytest -s -vvvv tests\
if errorlevel 1 exit 1
8 changes: 8 additions & 0 deletions recipes/wake-t/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -eu -x -o pipefail
ax3l marked this conversation as resolved.
Show resolved Hide resolved

export OMP_NUM_THREADS=2

# pytest
$PYTHON -m pytest -s -vvvv tests/