Updated plots to demonstrate current selection update
This commit is contained in:
@@ -24,9 +24,9 @@ class Project:
|
||||
|
||||
def notify(self, modifier=None):
|
||||
"""Notifies observers that selection is updated"""
|
||||
for observer in self.selection_observers:
|
||||
for observer in self._selection_observers:
|
||||
if modifier != observer:
|
||||
observer.update(self)
|
||||
observer.update_selection(self)
|
||||
|
||||
def set_selection(self,sel_obj,dim_name,selection):
|
||||
"""Sets selection and notifies observers"""
|
||||
@@ -48,7 +48,7 @@ class Project:
|
||||
|
||||
def suggest_dim_name(self,dim_name):
|
||||
"""Creates an arbitrary unique name for a new dimension."""
|
||||
if dim_name in self.dim_names:
|
||||
while dim_name in self.dim_names:
|
||||
dim_name = dim_name + "_t"
|
||||
return dim_name
|
||||
|
||||
@@ -61,8 +61,8 @@ def_list = [ ['samples',[]], ['genes',['a','b','c']] ]
|
||||
test_data = dataset.Dataset(x,def_list)
|
||||
c_p.add_dataset(test_data)
|
||||
|
||||
y = scipy.rand(2,2)
|
||||
def_list = [ ['samples',['1','2']], ['yclasses',['C','N']] ]
|
||||
y = scipy.rand(2000,2)
|
||||
def_list = [ ['samples',[]], ['yclasses',['C','N']] ]
|
||||
test_data = dataset.Dataset(y,def_list)
|
||||
c_p.add_dataset(test_data)
|
||||
|
||||
|
Reference in New Issue
Block a user