Skip to content

Commit

Permalink
add default val
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrejaKovacic committed Dec 21, 2018
1 parent 0a3c7c4 commit 383c2aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Orange/widgets/data/owmergedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ def _join_table_by_indices(self, reduced_extra, indices):
metas = self._join_array_by_indices(
self.data.metas, reduced_extra.metas, indices, string_cols)
table = Orange.data.Table.from_numpy(domain, X, Y, metas)
table.name = getattr(self.data, 'name')
table.attributes = getattr(self.data, 'attributes')
table.ids = getattr(self.data, 'ids')
return table
table.name = getattr(self.data, 'name', '')
table.attributes = getattr(self.data, 'attributes', {})
table.ids = self.data.ids
return table

@staticmethod
def _join_array_by_indices(left, right, indices, string_cols=None):
"""Join (horizontally) two arrays, taking pairs of rows given in indices
Expand Down

0 comments on commit 383c2aa

Please sign in to comment.