Skip to content
Snippets Groups Projects
Select Git revision
  • 22a6acdebbc7ef80a24833da73c19f3bdce87830
  • master default protected
  • aca
  • improve_README
  • v1.2.0
  • v1.1.1 protected
  • v1.1.0 protected
  • v1.0.0 protected
8 results

config_template.py

Blame
  • config_template.py 721 B
    # Absolute path of repository
    base_path = None
    # Place to store simulations
    data_path = None
    # Template for job scripts
    jobscript_template = '''
    # Instruction for the queuing system
    
    mpirun python {base_path}/run_simulation.py {label}'''
    
    """
    Here is an example for the Slurm queueing system:
    
    # jobscript_template = '''#!/bin/bash
    # #SBATCH --job-name MAM
    # #SBATCH -o {sim_dir}/{label}.%j.o
    # #SBATCH -e {sim_dir}/{label}.%j.e
    # #SBATCH --mem=120G
    # #SBATCH --time=06:00:00
    # #SBATCH --exclusive
    # #SBATCH --cpus-per-task={local_num_threads}
    # #SBATCH --ntasks={num_processes}
    # mpirun python {base_path}/run_simulation.py {label} {network_label}'''
    """
    
    # Command to submit jobs on the local cluster
    submit_cmd = None