We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135c67d commit 6afb4cfCopy full SHA for 6afb4cf
Orange/widgets/utils/annotated_data.py
@@ -1,4 +1,5 @@
1
import re
2
+from itertools import chain
3
4
import numpy as np
5
from Orange.data import Domain, DiscreteVariable
@@ -52,6 +53,11 @@ def get_next_name(names, name):
52
53
:param name: str
54
:return: str
55
"""
56
+ if isinstance(names, Domain):
57
+ names = [
58
+ var.name
59
+ for var in chain(names.attributes, names.class_vars, names.metas)
60
+ ]
61
indexes = get_indices(names, name)
62
if name not in names and not indexes:
63
return name
0 commit comments