@@ -424,9 +424,6 @@ def _updateInfo(self):
424424 .format (", " .join (no_idx [:- 1 ]), no_idx [- 1 ]))
425425
426426 def _on_selectionChanged (self ):
427- if not self .settings_compatible ():
428- self .invalidateOutput ()
429- return
430427 if self ._updating :
431428 return
432429
@@ -505,7 +502,6 @@ def merge_vars(new_atrs, atr):
505502 Atrs - list of variables we wish to merge
506503 new_atrs - dictionary where key is old name, val
507504 is [is_different, [table_keys]])
508- atr_type and table_key is known due to closure
509505 """
510506 if atr .name in new_atrs .keys ():
511507 if not new_atrs [atr .name ][0 ]:
@@ -554,7 +550,7 @@ def merge_vars(new_atrs, atr):
554550
555551 def commit (self ):
556552
557- if not self .itemsets :
553+ if not self .vennwidget . vennareas () :
558554 self .Outputs .selected_data .send (None )
559555 self .Outputs .annotated_data .send (None )
560556 return
@@ -1673,8 +1669,8 @@ def append_column(data, where, variable, column):
16731669def drop_columns (data , columns ):
16741670 columns = set (data .domain [col ] for col in columns )
16751671
1676- def filter_vars (vars ):
1677- return tuple (var for var in vars if var not in columns )
1672+ def filter_vars (vars_ ):
1673+ return tuple (var for var in vars_ if var not in columns )
16781674
16791675 domain = Domain (
16801676 filter_vars (data .domain .attributes ),
@@ -1708,9 +1704,7 @@ def arrays_equal(a, b, type_):
17081704 if type_ is not StringVariable :
17091705 if not numpy .all (numpy .isnan (a ) == numpy .isnan (b )):
17101706 return False
1711- if not numpy .any (a [numpy .logical_not (numpy .isnan (a ))] == b [numpy .logical_not (numpy .isnan (b ))]):
1712- return False
1713- return True
1707+ return numpy .all (a [numpy .logical_not (numpy .isnan (a ))] == b [numpy .logical_not (numpy .isnan (b ))])
17141708 else :
17151709 if not (a == b ).all ():
17161710 return False
0 commit comments