Skip to content

Commit

Permalink
Fix margin cache generation with numpy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
smcguire-cmu committed Oct 17, 2024
1 parent 16fd4bb commit da7ec2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hats_import/margin_cache/margin_cache_map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def map_pixel_shards(
# that **can** be contained in source pixel, then by `margin_order` pixels for rows
# in source data
margin_pairs = pd.read_csv(margin_pair_file)
explosion_factor = 4 ** (margin_order - source_pixel.order)
explosion_factor = 4 ** int(margin_order - source_pixel.order)
margin_pixel_range_start = source_pixel.pixel * explosion_factor
margin_pixel_range_end = (source_pixel.pixel + 1) * explosion_factor
margin_pairs = margin_pairs.query(
Expand Down

0 comments on commit da7ec2c

Please sign in to comment.