Commit 3bb937fa authored by Ronny Eichler's avatar Ronny Eichler
Browse files

Color map steps forward

parent 784c9349
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
1.921568627450980504e-01,5.098039215686274161e-01,7.411764705882353255e-01
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
9.019607843137255054e-01,3.333333333333333148e-01,5.098039215686274439e-02
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
1.921568627450980504e-01,6.392156862745097534e-01,3.294117647058823484e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.588235294117646856e-01,4.196078431372549100e-01,6.941176470588235059e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
4.196078431372549100e-01,6.823529411764706065e-01,8.392156862745098200e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
9.921568627450980671e-01,5.529411764705882693e-01,2.352941176470588203e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
4.549019607843137192e-01,7.686274509803922017e-01,4.627450980392157076e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
6.196078431372549211e-01,6.039215686274509443e-01,7.843137254901960675e-01
......@@ -21,7 +21,7 @@ import math
from ..lib.open_ephys import read_record
from ..lib import open_ephys, tools
from oio import util
from oio import util as oio_util
# Load vertex and fragment shaders
SHADER_PATH = os.path.join(os.path.dirname(__file__), 'shaders')
......@@ -73,9 +73,14 @@ class Vis(app.Canvas):
# Color of each vertex
# TODO: make it more efficient by using a GLSL-based color map and the index.
color = np.repeat(np.random.uniform(size=(self.n_rows, 3),
color = np.repeat(np.random.uniform(size=(self.n_rows/4, 3),
low=.1, high=.9),
self.max_samples_visible * self.n_cols, axis=0).astype(np.float32)
self.max_samples_visible * self.n_cols*4, axis=0).astype(np.float32)
print()
cmap_path = os.path.join(os.path.join(os.path.dirname(__file__), 'shaders'), '4x4x8_half_vega20c_cmap.csv')
cmap = np.loadtxt(cmap_path, delimiter=',')
# colors = np.repeat(cmap[:self.n_channels])
print(color.shape, cmap.shape)
# Signal 2D index of each vertex (row and col) and x-index (sample index
# within each signal).
......@@ -241,7 +246,7 @@ def run(*args, **kwargs):
cli_args = parser.parse_args(*args)
if 'layout' in cli_args:
channels = util.flat_channel_list(cli_args.layout)[:cli_args.channels]
channels = oio_util.flat_channel_list(cli_args.layout)[:cli_args.channels]
print(channels)
else:
channels = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment