Skip to content

Commit

Permalink
Fix numpy.product -> numpy.prod for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jun 20, 2024
1 parent 41537cc commit 90d69da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databroker/mongo_normalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ def populate_columns(keys, min_seq_num, max_seq_num):
else:
nonscalars.append(key)
estimated_nonscalar_row_bytesizes.append(
numpy.product(data_key["shape"]) * 8
numpy.prod(data_key["shape"]) * 8
)

# Aim for 10 MB pages to stay safely clear the MongoDB's hard limit
Expand Down

0 comments on commit 90d69da

Please sign in to comment.