Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 17, 2024
1 parent 85ca066 commit 4644c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pangeo_forge_recipes/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def bucket_by_position(
# Calculate the total range size based on global minimum and maximum positions
# And asserts the distribution is contiguous/uniform or dump warning
expected_range_size = global_max - global_min + 1 # +1 to include both ends
if (expected_range_size != global_count):
if expected_range_size != global_count:
logger.warning("The distribution of indexes is not contiguous/uniform")

# Determine the number of buckets needed, based on the maximum references allowed per merge
Expand Down
6 changes: 3 additions & 3 deletions tests/test_combiners.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ def combine_references_fixture():
),
(
(
Index({Dimension("time", CombineOp.CONCAT): Position(80)}),
{"url": "s3://blah.hdf5"},
Index({Dimension("time", CombineOp.CONCAT): Position(80)}),
{"url": "s3://blah.hdf5"},
),
(0, 80, 101),
False
False,
),
],
)
Expand Down

0 comments on commit 4644c04

Please sign in to comment.