Skip to content

Commit

Permalink
TVB-2236 Fix TS D3 viewer when retrieving data from server with prese…
Browse files Browse the repository at this point in the history
…lected channels

git-svn-id: https://repo.thevirtualbrain.org/svn/tvb/trunk/scientific_library@8235 1c0e02f0-7929-43c0-8fb3-3293bf43b0d1
  • Loading branch information
liadomide committed May 9, 2017
1 parent 6d4fdda commit c8f73eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tvb/datatypes/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,15 @@ def read_channels_page(self, from_idx, to_idx, step=None, specific_slices=None,
"""
if channels_list:
channels_list = json.loads(channels_list)
for i in xrange(len(channels_list)):
channels_list[i] = int(channels_list[i])

if channels_list:
channel_slice = tuple(channels_list)
else:
channel_slice = slice(None)

data_page = self.read_data_page(
from_idx, to_idx, step, specific_slices)
data_page = self.read_data_page(from_idx, to_idx, step, specific_slices)
# This is just a 1D array like in the case of Global Average monitor.
# No need for the channels list
if len(data_page.shape) == 1:
Expand Down

0 comments on commit c8f73eb

Please sign in to comment.