Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
echo "Installing wheel: $wheel"
pip install $wheel

pip install pytest uproot opengate hepunits
pip install pytest pytest-xdist uproot opengate hepunits

# Force the installation of Geant4 data, required by opengate
opengate_info
Expand All @@ -60,7 +60,7 @@ jobs:
# SWIG < 4.4 triggers the Py_LIMITED_API "builtin type swig…" warning when
# Python runs with -Walways; pytest enables that behavior, so we ignore it.
test_log=$(mktemp)
pytest -vv -s -W error -W "ignore:builtin type swig" 2>&1 | tee "$test_log"
pytest -vv -s -W error -W "ignore:builtin type swig" -n $(nproc) 2>&1 | tee "$test_log"
matches=$(grep -Ei "warning|exception|redefin(ed|ition)?" "$test_log" || true)
if [ -n "$matches" ]; then
echo "Unexpected output found:"
Expand Down
2 changes: 1 addition & 1 deletion applications/pctaddnoise/pctaddnoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def process(args_info: argparse.Namespace):
)

add_gaussian_noise(data, "KineticEnergy", rng, args_info.noise_energy, clamp=0.0)
add_gaussian_noise(data, "LocalTime", rng, args_info.noise_time)
add_gaussian_noise(data, "GlobalTime", rng, args_info.noise_time)

if args_info.verbose:
print("Writing output ROOT file…")
Expand Down
Loading
Loading