44
55"""
66
7-
87import sys
98from pathlib import Path
109
2019from pyhdx .config import cfg , reset_config
2120
2221
23- CONFIG_NAME = "config_beta.yaml"
24- cfg_pth = Path ().home () / ".pyhdx" / CONFIG_NAME
22+ # CONFIG_NAME = "config_beta.yaml"
23+ # cfg_pth = Path().home() / ".pyhdx" / CONFIG_NAME
2524
26- cfg .load_config (cfg_pth )
25+ # cfg.load_config(cfg_pth)
2726
2827# def printfunc(args):
2928# 1/0
@@ -77,7 +76,7 @@ def my_exception_hook(exctype, value, traceback):
7776
7877hdx_spec = yaml .safe_load (Path (input_data_dir / batch_fname ).read_text ())
7978# pdb_string = (web_data_dir / '1qyn.pdb').read_text()
80- pdb_string = (web_data_dir / "5JTR_mod.pdb" ).read_text ()
79+ # pdb_string = (web_data_dir / "5JTR_mod.pdb").read_text()
8180
8281
8382def reload_tables ():
@@ -135,7 +134,6 @@ def init_batch():
135134
136135
137136def init_dashboard ():
138- n = 2 # change this to control the number of HDX measurements added
139137 input_control = ctrl .control_panels ["PeptideFileInputControl" ]
140138 # states = ["SecB_tetramer"]
141139 states = ["SecB_tetramer" , "SecB_dimer" ]
@@ -146,7 +144,7 @@ def init_dashboard():
146144 d_uptake_control = ctrl .control_panels ["DUptakeFitControl" ]
147145 d_uptake_control .repeats = 2
148146
149- ctrl .sources ["pdb" ].add_from_string (pdb_string , "1qyn" )
147+ # ctrl.sources["pdb"].add_from_string(pdb_string, "1qyn")
150148
151149 src = ctrl .sources ["main" ]
152150 # df = csv_to_dataframe(web_data_dir / 'd_uptake.csv')
@@ -220,4 +218,4 @@ def init_manual():
220218 Path (cfg .assets_dir ).mkdir (exist_ok = True , parents = True )
221219 tmpl .servable ()
222220
223- # panel serve dev_gui_secB.py --show --autoreload --port 5076 --static-dirs pyhdx=C:/Users/jhsmi/pp/PyHDX/pyhdx/web/static assets=C:/Users/jhsmi/.pyhdx/assets
221+ # panel serve dev/gui/ dev_gui_secB.py --show --autoreload --port 5076 --static-dirs pyhdx=C:/Users/jhsmi/pp/PyHDX/pyhdx/web/static assets=C:/Users/jhsmi/.pyhdx/assets
0 commit comments