Skip to content

Commit

Permalink
Allow mistmatched joins with an empty table
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Apr 22, 2024
1 parent 1b964d4 commit 04e8926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kbmod/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def extend(self, results2):
------
Raises a ValueError if the columns of the results do not match.
"""
if set(self.colnames) != set(results2.colnames):
if len(self) > 0 and set(self.colnames) != set(results2.colnames):
raise ValueError("Column mismatch when merging results")

self.table = vstack([self.table, results2.table])
Expand Down

0 comments on commit 04e8926

Please sign in to comment.