Skip to content

Commit

Permalink
Add redshift to the TNS table (#780)
Browse files Browse the repository at this point in the history
* Add redshift information in the TNS table

* Update the header
  • Loading branch information
JulienPeloton authored Jan 15, 2024
1 parent fc3ab61 commit 4d5f922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/download_tns.py
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 4d5f922

Please sign in to comment.