Commit 96cb517d authored by Martin Schorb's avatar Martin Schorb
Browse files

status filter for module/parent

parent 9e229127
......@@ -124,9 +124,10 @@ def get_status(run_state,module,thispage):
thispage = thispage.lstrip('/')
# if not hf.trigger(key='module') == thispage:
# return dash.no_update
if not thispage in hf.trigger(key='module'):
print(hf.trigger(key='module'))
return dash.no_update
status_style = {"font-family":"Courier New",'color':'#000'}
# procs=params.processes[module.strip('_')]
......@@ -135,12 +136,12 @@ def get_status(run_state,module,thispage):
status = html.Div([html.Img(src='assets/gears.gif',height=72),html.Br(),'running'])
if run_state['type'] not in ['standalone']:
c_button_style = {}
status_style = {'color': '#04D'}
status_style = {'color': '#07E'}
elif run_state['status'] == 'input':
status='process will start on click.'
elif run_state['status'] == 'done':
status='DONE'
status_style = {'color':'#0C0'}
status_style = {'color':'#0D0'}
elif run_state['status'] == 'pending':
c_button_style = {}
status = ['Waiting for cluster resources to be allocated.']
......
......@@ -29,7 +29,7 @@ from utils import helper_functions as hf
# element prefix
label = "BDV_finalize"
label = "finalize_BDV"
parent = "finalize"
......@@ -172,7 +172,7 @@ def bdv_finalize_execute_gobutton(click,jsonfile,launch_store):
run_params['path'] = n5file
# run_params["scale_factors"] = 3 * [[2, 2, 2]],
run_params["resolution"] = res
run_params["resolution"] = str(res)
run_params["unit"] = 'nanometer'
......@@ -193,7 +193,8 @@ def bdv_finalize_execute_gobutton(click,jsonfile,launch_store):
launch_store['status'] = 'running'
launch_store['id'] = mkxml_p
launch_store['type'] = 'standalone'
launch_store['logfile'] = log_file
return True, '', launch_store
......@@ -31,7 +31,7 @@ from callbacks import substack_sel, filebrowse
# element prefix
label = "N5_export"
label = "export_N5"
parent = "export"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment