Skip to content
Snippets Groups Projects
Commit 4821ce84 authored by David Rafferty's avatar David Rafferty
Browse files

Silence metadata warning

parent 7dc5a638
Branches
Tags v1.3.1
No related merge requests found
...@@ -170,7 +170,7 @@ def concatenate(LSM1, LSM2, matchBy='name', radius=0.1, keep='all', ...@@ -170,7 +170,7 @@ def concatenate(LSM1, LSM2, matchBy='name', radius=0.1, keep='all',
# Now concatenate the tables # Now concatenate the tables
if matchBy.lower() == 'name': if matchBy.lower() == 'name':
LSM1.table = vstack([table1, table2]) LSM1.table = vstack([table1, table2], metadata_conflicts='silent')
elif matchBy.lower() == 'position': elif matchBy.lower() == 'position':
matches1, matches2 = matchSky(LSM1, LSM2, radius=radius) matches1, matches2 = matchSky(LSM1, LSM2, radius=radius)
matchCol1 = np.array(range(len(LSM1))) matchCol1 = np.array(range(len(LSM1)))
...@@ -184,7 +184,7 @@ def concatenate(LSM1, LSM2, matchBy='name', radius=0.1, keep='all', ...@@ -184,7 +184,7 @@ def concatenate(LSM1, LSM2, matchBy='name', radius=0.1, keep='all',
col2 = Column(name='match', data=matchCol2) col2 = Column(name='match', data=matchCol2)
table1.add_column(col1) table1.add_column(col1)
table2.add_column(col2) table2.add_column(col2)
LSM1.table = vstack([table1, table2]) LSM1.table = vstack([table1, table2], metadata_conflicts='silent')
if keep == 'from1' or keep == 'from2': if keep == 'from1' or keep == 'from2':
# Remove any duplicates # Remove any duplicates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment