Skip to content

Commit 040816a

Browse files
hmaarrfkpre-commit-ci[bot]Illviljandcherian
authored
Remove debugging slow assert statement (#7221)
* 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 <14371165+Illviljan@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
1 parent c92102b commit 040816a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

xarray/core/alignment.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -846,12 +846,6 @@ def is_alignable(obj):
846846
else:
847847
out[position][key] = aligned_obj # type: ignore[index] # maybe someone can fix this?
848848

849-
# something went wrong: we should have replaced all sentinel values
850-
for arg in out:
851-
assert arg is not not_replaced
852-
if is_dict_like(arg):
853-
assert all(value is not not_replaced for value in arg.values())
854-
855849
return out
856850

857851

0 commit comments

Comments
 (0)