Skip to content

Commit

Permalink
RA and DEC must be double-precision, not single, or radec2pix fails w…
Browse files Browse the repository at this point in the history
…ith TypeError
  • Loading branch information
gitosaurus committed Dec 19, 2024
1 parent f99ef80 commit 15144c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hats_import/margin_cache/margin_cache_map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def map_pixel_shards(

margin_pixel_list = hp.radec2pix(
margin_order,
data[ra_column].values,
data[dec_column].values,
data[ra_column].values.astype("d"),
data[dec_column].values.astype("d"),
)
margin_pixel_filter = pd.DataFrame(
{"margin_pixel": margin_pixel_list, "filter_value": np.arange(0, len(margin_pixel_list))}
Expand Down

0 comments on commit 15144c2

Please sign in to comment.