From c8f73ebf8172e754717ab41e18b8bf3c12acee26 Mon Sep 17 00:00:00 2001 From: liadomide Date: Tue, 9 May 2017 15:34:57 +0000 Subject: [PATCH] TVB-2236 Fix TS D3 viewer when retrieving data from server with preselected channels git-svn-id: https://repo.thevirtualbrain.org/svn/tvb/trunk/scientific_library@8235 1c0e02f0-7929-43c0-8fb3-3293bf43b0d1 --- tvb/datatypes/time_series.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tvb/datatypes/time_series.py b/tvb/datatypes/time_series.py index 666624c02..ab5730418 100644 --- a/tvb/datatypes/time_series.py +++ b/tvb/datatypes/time_series.py @@ -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: