#!/bin/bash
#SBATCH --account=def-xander      # Replace with your account
#SBATCH --mem=10G                 # Memory allocation
#SBATCH --time=11:00:00           # Total run time limit (11 hours)
#SBATCH --cpus-per-task=4         # Number of CPU cores per task
#SBATCH --job-name=h20_%A # Job name with job ID appended
#SBATCH --output=%x-%j.out        # Standard output and error log
#SBATCH --error=%x-%j.err         # Separate error log

# Load necessary modules
module load python/3.8

# Activate your virtual environment
source ~/envs/workdir/bin/activate

# Parameters
TIME=$1

# Run the Python script with the specified time parameter
srun python /home/dvera/scratch/Framework_EXP/h20_autoML.py --time $TIME

# Deactivate the virtual environment
deactivate
