From 4821ce84368fefaff39fbbb0f73b12fcf57cd7c5 Mon Sep 17 00:00:00 2001 From: David Rafferty <drafferty@hs.uni-hamburg.de> Date: Fri, 4 May 2018 09:51:44 +0200 Subject: [PATCH] Silence metadata warning --- lsmtool/operations/concatenate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsmtool/operations/concatenate.py b/lsmtool/operations/concatenate.py index d0ee904..85c3ad0 100644 --- a/lsmtool/operations/concatenate.py +++ b/lsmtool/operations/concatenate.py @@ -170,7 +170,7 @@ def concatenate(LSM1, LSM2, matchBy='name', radius=0.1, keep='all', # Now concatenate the tables if matchBy.lower() == 'name': - LSM1.table = vstack([table1, table2]) + LSM1.table = vstack([table1, table2], metadata_conflicts='silent') elif matchBy.lower() == 'position': matches1, matches2 = matchSky(LSM1, LSM2, radius=radius) matchCol1 = np.array(range(len(LSM1))) @@ -184,7 +184,7 @@ def concatenate(LSM1, LSM2, matchBy='name', radius=0.1, keep='all', col2 = Column(name='match', data=matchCol2) table1.add_column(col1) table2.add_column(col2) - LSM1.table = vstack([table1, table2]) + LSM1.table = vstack([table1, table2], metadata_conflicts='silent') if keep == 'from1' or keep == 'from2': # Remove any duplicates -- GitLab