Skip to content

Commit 9deb815

Browse files
committed
prueba
1 parent 3ce31ae commit 9deb815

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

scripts/launch_all_requests_scripts.sh

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,9 @@
1111
# Get all unique script paths from all requests/*.csv files
1212
SCRIPTS=$(awk -F',' 'NR>1 && $0!~/^$/ {for(i=1;i<=NF;i++) if($i ~ /scripts\// || $i ~ /derived\// || $i ~ /interpolation\//) print $i}' requests/*.csv | sort | uniq)
1313

14-
source ~/.bashrc || true
15-
16-
# Try to activate the env robustly across HPCs
17-
if command -v mamba >/dev/null 2>&1; then
18-
mamba activate c3s-atlas || true
19-
elif command -v conda >/dev/null 2>&1; then
20-
# Ensure conda is initialized in non-interactive shells
21-
eval "$(conda shell.bash hook)" || true
22-
conda activate c3s-atlas || true
23-
elif command -v micromamba >/dev/null 2>&1; then
24-
eval "$(micromamba shell hook -s bash)" || true
25-
micromamba activate c3s-atlas || true
26-
fi
14+
15+
source ~/.bashrc
16+
mamba activate c3s-atlas
2717

2818
# Verify activation worked
2919
python -c "import sys; assert sys.prefix and 'c3s-atlas' in sys.prefix" 2>/dev/null || {
@@ -35,7 +25,7 @@ python -c "import sys; assert sys.prefix and 'c3s-atlas' in sys.prefix" 2>/dev/n
3525
for script in $SCRIPTS; do
3626
if [[ -f "$script" ]]; then
3727
echo "Launching SLURM job for $script on node wn54"
38-
sbatch --nodelist=wn054 -p meteo_long --job-name=$(basename $script .py) --output=slurm-$(basename $script .py)-%j.out --wrap="python $script"
28+
sbatch --nodelist=wn054 -p meteo_long --job-name=$(basename $script .py) --wrap="python $script"
3929
else
4030
echo "Script not found: $script"
4131
fi

0 commit comments

Comments
 (0)