From 5c082a1beef6518ba5467d5ac0fab4e8b3cf98cd Mon Sep 17 00:00:00 2001 From: Yifan Wang Date: Mon, 5 Feb 2024 14:28:47 +0100 Subject: [PATCH] fix --- bin/pycbc_convertinjfiletohdf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pycbc_convertinjfiletohdf b/bin/pycbc_convertinjfiletohdf index 9c703d51f98..f2e3a5cd183 100755 --- a/bin/pycbc_convertinjfiletohdf +++ b/bin/pycbc_convertinjfiletohdf @@ -183,8 +183,8 @@ if injclass is None: # Assume this is a PyCBC format injclass = InjectionSet(args.injection_file) data = {} - for key in xinj.table[0].__slots__: - data[str(key)] = numpy.array([getattr(t, key) for t in xinj.table]) + for key in injclass.table[0].__slots__: + data[str(key)] = numpy.array([getattr(t, key) for t in injclass.table]) else: data = injclass.pack_data_into_pycbc_format_input()