Skip to content

Commit 1287384

Browse files
committed
use data.FEATURE_FLAGS to access web based feature flags
1 parent bb17099 commit 1287384

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

forest/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def on_change(event):
216216
"profile": "Display Profile"
217217
}
218218
available_features = {k: display_names[k]
219-
for k in display_names.keys() if config.features[k]}
219+
for k in display_names.keys() if data.FEATURE_FLAGS[k]}
220220

221221
tools_panel = tools.ToolsPanel(available_features)
222222
tools_panel.connect(store)
@@ -256,7 +256,7 @@ def on_change(event):
256256
controls.connect(store)
257257

258258
# Add support for a modal dialogue
259-
if config.features["multiple_colorbars"]:
259+
if data.FEATURE_FLAGS["multiple_colorbars"]:
260260
view = forest.components.modal.Tabbed()
261261
else:
262262
view = forest.components.modal.Default()
@@ -327,7 +327,7 @@ def on_change(event):
327327
])
328328

329329
tool_figures = {}
330-
if config.features["time_series"]:
330+
if data.FEATURE_FLAGS["time_series"]:
331331
# Series sub-figure widget
332332
series_figure = bokeh.plotting.figure(
333333
plot_width=400,
@@ -351,7 +351,7 @@ def on_change(event):
351351

352352
tool_figures["series_figure"] = series_figure
353353

354-
if config.features["profile"]:
354+
if data.FEATURE_FLAGS["profile"]:
355355
# Profile sub-figure widget
356356
profile_figure = bokeh.plotting.figure(
357357
plot_width=300,

0 commit comments

Comments
 (0)