Skip to content

Commit

Permalink
Some modification to the update function
Browse files Browse the repository at this point in the history
That do not prevent the x-axis from stopping the update after a page refresh.

Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
  • Loading branch information
ChristianTremblay committed Jul 20, 2016
1 parent 6e66e4a commit e15e1f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions BAC0/bokeh/BokehRenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ def update_data(self):
glyph_renderer = renderer
new_data = {}
if name in self.points_list:
new_data = glyph_renderer.data_source.data
df['name'] = ('%s / %s' % (name, self.device[name]['description']))
new_data['x'] = df['index']
new_data['y'] = df[name]
Expand All @@ -261,7 +260,6 @@ def update_data(self):
new_data['units'] = df['units']
glyph_renderer.data_source.data = new_data
elif name == 'Notes':
new_data = glyph_renderer.data_source.data
notes_df = self.read_notes()
new_data['x'] = notes_df['index']
new_data['y'] = notes_df['value']
Expand Down

0 comments on commit e15e1f8

Please sign in to comment.