tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pba_spheroidTNF', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pba_spheroidTNF', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='antibacterial', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='antibacterial', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
write_config_file(new_config_file) tdir = os.path.abspath('tmpdir') os.chdir(tdir) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pharmacodynamics2GUI', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pharmacodynamics2GUI', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', )
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='liver_medium', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='liver_medium', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='Cycle_Training', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='Cycle_Training', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
if (os.path.isdir(os.path.join(parent_dir, d)) and d[0] != '.') ] alldirs.sort() #basedir = os.path.basename(outdir) basedir = alldirs[0] # would rather set = the latest created select_output_dir.options = alldirs select_output_dir.value = basedir return # https://hubzero.github.io/hublib/ui.html#submit submit_button = Submit(label='Submit', tooltip='Submit batch run', start_func=submit_sim_func, done_func=submit_done_func, cachename='pc4nanobio') default_config_button = widgets.Button( description='Reset defaults', style={'description_width': 'initial'}, button_style='info', # 'success', 'info', 'warning', 'danger' or '' tooltip='Populate the GUI with default parameters', ) default_config_button.on_click(default_config_file_cb) read_config = widgets.Dropdown( options=get_config_files(), tooltip='Config File', )
write_config_file(new_config_file) tdir = os.path.abspath('tmpdir') os.chdir(tdir) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) cells_tab.update(tdir) # sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='edu4mechanics', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='edu4mechanics', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', )
write_config_file(new_config_file) tdir = os.path.abspath('tmpdir') os.chdir(tdir) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='physicellecm', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='physicellecm', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', )
def outcb(s): # This is called when new output is received. # Only update file list for certain messages: if "simulat" in s: # New Data. update visualizations svg.update('') sub.update('') return s if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='motility', showcache=False, outcb=outcb) else: run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='motility', showcache=False, outcb=outcb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run', ) read_config.style = {
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later svg.update(tdir) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='NanoHub_Epil_viral_veins_project', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='NanoHub_Epil_viral_veins_project', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='Hypoxia_simulator', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='Hypoxia_simulator', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
def outcb(s): # This is called when new output is received. # Only update file list for certain messages: if "simulat" in s: # New Data. update visualizations svg.update('') sub.update('') return s if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pc4nanobio', showcache=False, outcb=outcb) else: run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pc4nanobio', showcache=False, outcb=outcb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run', ) read_config.style = {
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='nanobio_2_gui', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='nanobio_2_gui', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='virion2receptor', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='virion2receptor', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='project_repo_ecm_simul', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='project_repo_ecm_simul', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='trsecretion', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='trsecretion', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
# with debug_view: # print('run_button_cb') # new_config_file = "config.xml" new_config_file = full_xml_filename write_config_file(new_config_file) # subprocess.call(["biorobots", xml_file_out]) # subprocess.call(["myproj", new_config_file]) # spews to shell, but not ctl-C'able # subprocess.call(["myproj", new_config_file], shell=True) # no subprocess.Popen(["myproj", new_config_file]) if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='iu399sp19p017', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='iu399sp19p017', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
# with debug_view: # print('run_button_cb') # new_config_file = "config.xml" new_config_file = full_xml_filename write_config_file(new_config_file) # subprocess.call(["biorobots", xml_file_out]) # subprocess.call(["myproj", new_config_file]) # spews to shell, but not ctl-C'able # subprocess.call(["myproj", new_config_file], shell=True) # no subprocess.Popen(["myproj", new_config_file]) if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pc4cancerimmune', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pc4cancerimmune', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',
tdir = os.path.abspath('tmpdir') os.chdir( tdir ) # operate from tmpdir; temporary output goes here. may be copied to cache later # svg.update(tdir) # sub.update_params(config_tab) sub.update(tdir) subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='tr_microenvironment_nanohub', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='tr_microenvironment_nanohub', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation',