Skip to content

Commit

Permalink
#284 update the map UI to allow the user to select tide model
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Jan 16, 2025
1 parent 8e30763 commit 71db2bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/coastseg/map_UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from ipywidgets import SelectMultiple
from ipywidgets import Output
from ipywidgets import FloatText
from ipywidgets import Dropdown
from ipywidgets import Accordion


Expand Down Expand Up @@ -446,6 +447,13 @@ def create_tidal_correction_widget(self, id_container: "traitlets.HasTraits"):
options=id_container.ids,
layout=Layout(overflow_y="auto", height="100px"),
)
self.tide_model_selection = Dropdown(
options=['FES2014', 'FES2022',],
value='FES2014',
description='Tide Model:',
disabled=False,
style={'description_width': 'initial'},
)

# Function to update widget options when the traitlet changes
def update_widget_options(change):
Expand All @@ -464,6 +472,7 @@ def update_widget_options(change):
return VBox(
[
correct_tides_html,
self.tide_model_selection,
self.beach_slope_text,
self.reference_elevation_text,
self.scrollable_select,
Expand All @@ -487,7 +496,7 @@ def tidally_correct_button_clicked(self, button):
reference_elevation = self.reference_elevation_text.value

self.coastseg_map.compute_tidal_corrections(
selected_rois, beach_slope, reference_elevation
selected_rois, beach_slope, reference_elevation,model=self.tide_model_selection.value
)
# load in shoreline settings, session directory with model outputs, and a new session name to store extracted shorelines

Expand Down

0 comments on commit 71db2bf

Please sign in to comment.