-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split tests in more atomic versions of reductions
- Loading branch information
1 parent
ac170b4
commit ecbcb49
Showing
2 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
examples/ndarray/reduce_expr_save2.py → examples/ndarray/reduce_and_enlarge.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
####################################################################### | ||
# Copyright (c) 2019-present, Blosc Development Team <[email protected]> | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under a BSD-style license (found in the | ||
# LICENSE file in the root directory of this source tree) | ||
####################################################################### | ||
|
||
# This shows how to evaluate and store expressions with reductions, | ||
# using NDArray instances as operands. Note how we must use a string | ||
# for the expression, as the reductions are normally evaluated eagerly. | ||
# Using strings prevents eager computation, and allows to store the | ||
# expression for later evaluation. | ||
# In particular, note how re-opening a stored expression can adapt to | ||
# changes in the operands. | ||
|
||
import blosc2 | ||
|
||
# Create arrays with specific dimensions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters