Skip to content

Commit

Permalink
rm options
Browse files Browse the repository at this point in the history
  • Loading branch information
stes committed Jun 5, 2020
1 parent d915c2c commit 488d486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def __init__(self, name, db, config, server):
self.app = dash.Dash(name, external_stylesheets=external_stylesheets, server=server)
self.db = db
self.current_idx = 0
self.username = str(uuid.uuid4())
self.appconfig = config
self.pick_keypoint_subset()
self.make_figure_image(self.current_idx)
Expand Down Expand Up @@ -84,7 +83,7 @@ def make_layout(self):
dcc.Input(
id="input_name",
type='text',
placeholder=self.username,
placeholder=str(uuid.uuid4()),
),
html.Button('Previous', id='previous'),
html.Button('Next', id='next'),
Expand Down Expand Up @@ -122,7 +121,8 @@ def make_layout(self):
)

def pick_keypoint_subset(self):
self.subset = random.sample(range(len(self.appconfig.options)), self.appconfig.n2show)
self.subset = list(range(len(self.appconfig.options)))
#random.sample(range(len(self.appconfig.options)), self.appconfig.n2show)

def refresh_radio_buttons(self):
self.pick_keypoint_subset()
Expand Down

0 comments on commit 488d486

Please sign in to comment.