Skip to content

Commit

Permalink
final fix for webinar
Browse files Browse the repository at this point in the history
  • Loading branch information
stes committed Jun 5, 2020
2 parents 488d486 + a2b122e commit 8c63c9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def update_image(clickData, relayoutData, click_n, click_p, click_c, slider_val,
elif 'autorange' in key:
view.fig.update_xaxes(autorange=True)
view.fig.update_yaxes(autorange='reversed')
n_bpt = view.options.index(option)
n_bpt = view.options.index(option) if option in view.options else 0
if button_id != 'slider' and 'relayout' not in event:
n_bpt += 1
new_option = view.options[min(len(view.options) - 1, n_bpt)]
Expand Down
4 changes: 2 additions & 2 deletions view.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def make_layout(self):
dcc.Input(
id="input_name",
type='text',
placeholder=str(uuid.uuid4()),
placeholder="Please add username"
),
html.Button('Previous', id='previous'),
html.Button('Next', id='next'),
Expand Down Expand Up @@ -121,7 +121,7 @@ def make_layout(self):
)

def pick_keypoint_subset(self):
self.subset = list(range(len(self.appconfig.options)))
self.subset = [0, 1, 2, 8, 9]
#random.sample(range(len(self.appconfig.options)), self.appconfig.n2show)

def refresh_radio_buttons(self):
Expand Down

0 comments on commit 8c63c9f

Please sign in to comment.