Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redshift to the TNS table #780

Merged
merged 2 commits into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading