Skip to content

Commit 5d4c83d

Browse files
committed
update testing file
1 parent 3bf5d2a commit 5d4c83d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

dev/gui/dev_gui_secB.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
"""
66

7-
87
import sys
98
from pathlib import Path
109

@@ -20,10 +19,10 @@
2019
from 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

7877
hdx_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

8382
def reload_tables():
@@ -135,7 +134,6 @@ def init_batch():
135134

136135

137136
def 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

Comments
 (0)