Skip to content

Commit

Permalink
Remove debugging slow assert statement (#7221)
Browse files Browse the repository at this point in the history
* Remove debugging slow assert statement

* Add a benchmark

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update asv_bench/benchmarks/dataset_creation.py

* Rework the benchmark

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Delete dataset_creation.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Illviljan <[email protected]>
Co-authored-by: Deepak Cherian <[email protected]>
  • Loading branch information
4 people authored Oct 28, 2022
1 parent c92102b commit 040816a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions xarray/core/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,12 +846,6 @@ def is_alignable(obj):
else:
out[position][key] = aligned_obj # type: ignore[index] # maybe someone can fix this?

# something went wrong: we should have replaced all sentinel values
for arg in out:
assert arg is not not_replaced
if is_dict_like(arg):
assert all(value is not not_replaced for value in arg.values())

return out


Expand Down

0 comments on commit 040816a

Please sign in to comment.