Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Dec 16, 2024
1 parent 1ccc838 commit 6fef9a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py/legacypipe/gaiacat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import os
from legacypipe.ps1cat import HealpixedCatalog
import numpy as np

def gaia_to_decam(gaia_cat, bands,
def gaia_to_decam(gaia, bands,
average_color=1.4,
color_clip=(-0.6, 4.1)):
from functools import reduce
Expand Down
2 changes: 1 addition & 1 deletion py/legacypipe/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def fix_gaia(gaia, bands):
from legacypipe.gaiacat import gaia_to_decam

gaia.phot_g_mean_mag = gaia.phot_g_mean_mag.astype(np.float32)
gaia.G = gaia.phot_g_mean_mag.
gaia.G = gaia.phot_g_mean_mag
# Sort by brightness (for reference-*.fits output table)
sortmag = gaia.G.copy()
sortmag[sortmag == 0] = gaia.phot_rp_mean_mag[sortmag == 0]
Expand Down

0 comments on commit 6fef9a4

Please sign in to comment.