From f3321c2e16155d93986b590235f8e3925dcb8954 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Thu, 16 Jan 2025 14:45:35 +0000 Subject: [PATCH] exspec-after.sh: use uvx to run artistools --- scripts/exspec-after.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/exspec-after.sh b/scripts/exspec-after.sh index 8411f5377..d4c0e6d4b 100755 --- a/scripts/exspec-after.sh +++ b/scripts/exspec-after.sh @@ -40,19 +40,17 @@ if [[ -f emission.out || -f emission.out.zstd ]]; then mkdir -p speclc_angle_res mv *_res_*.out* speclc_angle_res/ || true - python3 -m ensurepip - - python3 -m pip install artistools + curl -LsSf https://astral.sh/uv/install.sh | sh # convert packets to parquet for fast reading - python3 -m artistools lc --frompackets || true + uvx artistools lc --frompackets || true if [ -f vpkt.txt ]; then # convert virtual packets to parquet - python3 -m artistools lc --frompackets -plotvspecpol 0 || true + uvx artistools lc --frompackets -plotvspecpol 0 || true fi # convert estimators to parquet. On JUWELS, you might need to limit the number of processes to 16 in artistools/artistools/configuration.py - python3 -c 'import artistools as at; at.estimators.scan_estimators()' || true + uvx --from artistools python3 -c 'import artistools as at; at.estimators.scan_estimators()' || true fi