Skip to content

Commit 858feda

Browse files
committed
update test file
1 parent a4012fb commit 858feda

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dev/gui/dev_gui_secB.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from pyhdx.web.apps import main_app
1818
from pyhdx.web.base import STATIC_DIR
1919
from pyhdx.web.utils import load_state, fix_multiindex_dtypes
20+
from pyhdx.config import cfg
2021

2122
sys._excepthook = sys.excepthook
2223

@@ -98,12 +99,12 @@ def init_dashboard():
9899
fit_control.patience = 100
99100
fit_control.learning_rate = 100
100101

101-
ngl = ctrl.views['protein']
102-
ngl._ngl.pdb_string = Path(test_dir / '1qyn.pdb').read_text()
103-
ctrl.views['protein'].object = pdb_string
102+
# ngl = ctrl.views['protein']
103+
# ngl._ngl.pdb_string = Path(test_dir / '1qyn.pdb').read_text()
104+
# ctrl.views['protein'].object = pdb_string
104105

105-
fit_result = load_fitresult(fitresult_dir)
106-
src.add(fit_result, 'fit_1')
106+
# fit_result = load_fitresult(fitresult_dir)
107+
# src.add(fit_result, 'fit_1')
107108

108109
diff = ctrl.control_panels['DifferentialControl']
109110
diff._action_add_comparison()
@@ -116,7 +117,7 @@ def init_dashboard():
116117

117118

118119
if __name__ == '__main__':
119-
pn.serve(tmpl, show=True, static_dirs={'pyhdx': STATIC_DIR})
120+
pn.serve(tmpl, show=True, static_dirs={'pyhdx': STATIC_DIR, 'assets': cfg.assets_dir})
120121

121122
elif __name__.startswith('bokeh_app'):
122123
tmpl.servable()

0 commit comments

Comments
 (0)