Rename panels
This commit is contained in:
parent
456a15a365
commit
fdcaebb250
@ -3,9 +3,9 @@ import argparse
|
|||||||
from bokeh.io import curdoc
|
from bokeh.io import curdoc
|
||||||
from bokeh.models import Tabs
|
from bokeh.models import Tabs
|
||||||
|
|
||||||
import panel_anatric
|
import panel_hdf_anatric
|
||||||
import panel_data_viewer
|
import panel_hdf_viewer
|
||||||
import panel_1D_detector
|
import panel_ccl_integrate
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog="pyzebra", formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
prog="pyzebra", formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
||||||
@ -17,8 +17,8 @@ doc = curdoc()
|
|||||||
doc.title = "pyzebra"
|
doc.title = "pyzebra"
|
||||||
|
|
||||||
# Final layout
|
# Final layout
|
||||||
tab_data_viewer = panel_data_viewer.create()
|
tab_hdf_viewer = panel_hdf_viewer.create()
|
||||||
tab_anatric = panel_anatric.create()
|
tab_hdf_anatric = panel_hdf_anatric.create()
|
||||||
tab_1D_detector = panel_1D_detector.create()
|
tab_ccl_integrate = panel_ccl_integrate.create()
|
||||||
|
|
||||||
doc.add_root(Tabs(tabs=[tab_data_viewer, tab_anatric, tab_1D_detector]))
|
doc.add_root(Tabs(tabs=[tab_hdf_viewer, tab_hdf_anatric, tab_ccl_integrate]))
|
||||||
|
@ -204,4 +204,4 @@ def create():
|
|||||||
row(column(smooth_toggle, process_button, save_button)),
|
row(column(smooth_toggle, process_button, save_button)),
|
||||||
)
|
)
|
||||||
|
|
||||||
return Panel(child=tab_layout, title="1D Detector")
|
return Panel(child=tab_layout, title="ccl integrate")
|
@ -406,4 +406,4 @@ def create():
|
|||||||
|
|
||||||
curdoc().add_periodic_callback(update_config, 1000)
|
curdoc().add_periodic_callback(update_config, 1000)
|
||||||
|
|
||||||
return Panel(child=tab_layout, title="Anatric")
|
return Panel(child=tab_layout, title="hdf anatric")
|
@ -464,7 +464,7 @@ def create():
|
|||||||
column(roi_avg_plot, layout_image, row(colormap_layout, hkl_layout)),
|
column(roi_avg_plot, layout_image, row(colormap_layout, hkl_layout)),
|
||||||
)
|
)
|
||||||
|
|
||||||
return Panel(child=tab_layout, title="Data Viewer")
|
return Panel(child=tab_layout, title="hdf viewer")
|
||||||
|
|
||||||
|
|
||||||
def calculate_hkl(det_data, index, setup_type="nb_bi"):
|
def calculate_hkl(det_data, index, setup_type="nb_bi"):
|
Loading…
x
Reference in New Issue
Block a user