Page MenuHomec4science

app_debug.py
No OneTemporary

File Metadata

Created
Tue, May 14, 10:30

app_debug.py

#!/usr/bin/env python
'''
Created on 18.04.2018
@author: trevaz (tristan.revaz@epfl.ch)
---------------------------------------------------------------------------------
app: debug
---------------------------------------------------------------------------------
'''
#################################################################################
# IMPORTS
#################################################################################
import os
from fctlib import get_case_path
#################################################################################
# CONSTANTS
#################################################################################
#################################################################################
# MAIN FUNCTION
#################################################################################
def debug(PATH, case_name):
'''
DEF: monitor case.
INPUT: - case_name: name of the case, type=string
OUTPUT: - ()
'''
case_path = get_case_path(PATH, case_name)
os.system('sbatch --partition debug ' + os.path.join(case_path, 'src', case_name + '_src'))

Event Timeline