Skip to content

Commit

Permalink
remove labels for accordions
Browse files Browse the repository at this point in the history
  • Loading branch information
RJbalikian committed Jan 8, 2024
1 parent ef4fff0 commit 1ac496f
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions sprit/sprit_jupyter_UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ def select_proc(event):

input_accordion.children = [metadata_grid, instrument_grid, location_grid, ioparam_grid, inputAPI_grid]
input_accordion.titles = ["Instrument Metadata", "Acquisition Information", "Location Information", "I/O and Parameters", "See Python API Call"]
input_accordion_box.layout = widgets.Layout(width='95%')

input_accordion.layout.width = '99%'
input_accordion_box.layout = widgets.Layout(align_content='space-between', width='99%')
input_accordion.layout = widgets.Layout(width='99%')

# ADD THE REST OF THE WIDGETS AROUND THE ACCORDIONS
# A text box for the site name
Expand Down Expand Up @@ -537,8 +537,8 @@ def update_fetch_data_call():
input_params_vbox.children = [site_hbox,datapath_hbox,metadata_hbox,progress_hbox]

input_accordion_box.children = [input_accordion]
input_HBox.children = [input_accordion_label_box, input_accordion_box]
input_HBox.layout= widgets.Layout(align_content='space-between')
#input_HBox.children = [input_accordion_label_box, input_accordion_box]
#input_HBox.layout= widgets.Layout(align_content='space-between')

# Create a GridBox with 12 rows and 20 columns
input_tab = widgets.GridBox(layout=widgets.Layout(grid_template_columns='repeat(10, 1)',
Expand All @@ -548,7 +548,7 @@ def update_fetch_data_call():
input_tab.children = [site_hbox,
datapath_hbox,
metadata_hbox,
input_HBox,
input_accordion_box,
progress_hbox]

def get_input_params():
Expand Down Expand Up @@ -1301,8 +1301,17 @@ def update_results_fig(hv_data, plot_string):
if comp_plot_row!=1:
results_fig.update_xaxes(showticklabels=showtickLabels, row=comp_plot_row, col=1)

if preview_fig.layout.width is None:
if outlier_fig.layout.widgth is None:
chartwidth = 800
else:
chartwidth = outlier_fig.layout.width

else:
chartwidth = preview_fig.layout.width

results_fig.update_layout(margin={"l":10, "r":10, "t":35, 'b':0},
showlegend=False, autosize=True, height = 1.2 * float(preview_fig.layout.width),
showlegend=False, autosize=True, height = 1.2 * float(chartwidth),
title=f"{hvsr_data['site']} Results")
results_fig.update_yaxes(title_text='H/V Ratio', row=1, col=1)
results_fig.update_yaxes(title_text='H/V Over Time', row=noSubplots, col=1)
Expand Down

0 comments on commit 1ac496f

Please sign in to comment.