Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62624656
app_debug.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 14, 10:30
Size
1 KB
Mime Type
text/x-python
Expires
Thu, May 16, 10:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17669491
Attached To
rWIRELESGPU wireles-gpu
app_debug.py
View Options
#!/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
Log In to Comment