From 4d5f92205a0bc3d006dfd41275fab02a99df0f30 Mon Sep 17 00:00:00 2001 From: Julien Date: Mon, 15 Jan 2024 09:03:13 +0100 Subject: [PATCH] Add redshift to the TNS table (#780) * Add redshift information in the TNS table * Update the header --- bin/download_tns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/download_tns.py b/bin/download_tns.py index 50d8d3c8..83bac655 100644 --- a/bin/download_tns.py +++ b/bin/download_tns.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2023 AstroLab Software +# Copyright 2023-2024 AstroLab Software # Author: Julien Peloton # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -44,7 +44,7 @@ def format_tns_for_hbase(pdf: pd.DataFrame) -> pd.DataFrame: pdf_explode = pdf_val.explode('internalname') # Select columns of interest -- and create a Spark DataFrame - cols = ['fullname', 'ra', 'declination', 'type', 'internalname'] + cols = ['fullname', 'ra', 'declination', 'type', 'redshift', 'internalname'] return pdf_explode[cols]