-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 3 numpy arrays for manifest internally (#107)
* change entries property to a structured array, add from_dict * fix validation * equals method * re-implemented concatenation through concatenation of the wrapped structured array * fixed manifest.from_kerchunk_dict * fixed kerchunk tests * change private attributes to 3 numpy arrays * add from_arrays method * to and from dict working again * fix dtype comparisons * depend on numpy release candidate * get concatenation and stacking working * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove manifest-level tests of concatenation * generalized create_manifestarray fixture * added tests of broadcasting * made basic broadcasting tests pass by calling np.broadcast_to on underlying numpy arrays * generalize fixture for creating scalar ManifestArrays * improve regression test for expanding scalar ManifestArray * remove now-unneeded scalar broadcasting logic * rewrite __eq__ method on ManifestArray * remove unused import * reinstate the ChunkManifest.__init__ method to accept dictionaries * hopefully fix broadcasting bug * add backwards compatibility for pre-numpy2.0 * depend on numpy>=2.0.0 * rewrote broadcast_to shape logic * remove faulty hypothesis strategies * remove hypothesis from dependencies * ignore remaining mypy errors * release notes * update dependencies in CI test env --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
27a6f94
commit c4d4325
Showing
13 changed files
with
399 additions
and
333 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.