Skip to content

Commit a09444c

Browse files
authored
Merge pull request #372 from informatics-lab/fix-feature-ui
Use data.FEATURE_FLAGS to access web based feature flags
2 parents bb17099 + 14e7ae6 commit a09444c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

forest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.. automodule:: forest.presets
2424
2525
"""
26-
__version__ = '0.16.0'
26+
__version__ = '0.16.1'
2727

2828
from .config import *
2929
from . import (

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)