1717from pyhdx .web .apps import main_app
1818from pyhdx .web .base import STATIC_DIR
1919from pyhdx .web .utils import load_state , fix_multiindex_dtypes
20+ from pyhdx .config import cfg
2021
2122sys ._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
118119if __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
121122elif __name__ .startswith ('bokeh_app' ):
122123 tmpl .servable ()
0 commit comments