mlarray 0.0.51__tar.gz → 0.0.53__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {mlarray-0.0.51 → mlarray-0.0.53}/PKG-INFO +1 -1
  2. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray/mlarray.py +13 -2
  3. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray.egg-info/PKG-INFO +1 -1
  4. {mlarray-0.0.51 → mlarray-0.0.53}/.github/workflows/workflow.yml +0 -0
  5. {mlarray-0.0.51 → mlarray-0.0.53}/.gitignore +0 -0
  6. {mlarray-0.0.51 → mlarray-0.0.53}/LICENSE +0 -0
  7. {mlarray-0.0.51 → mlarray-0.0.53}/MANIFEST.in +0 -0
  8. {mlarray-0.0.51 → mlarray-0.0.53}/README.md +0 -0
  9. {mlarray-0.0.51 → mlarray-0.0.53}/assets/banner.png +0 -0
  10. {mlarray-0.0.51 → mlarray-0.0.53}/assets/banner.png~ +0 -0
  11. {mlarray-0.0.51 → mlarray-0.0.53}/docs/api.md +0 -0
  12. {mlarray-0.0.51 → mlarray-0.0.53}/docs/cli.md +0 -0
  13. {mlarray-0.0.51 → mlarray-0.0.53}/docs/index.md +0 -0
  14. {mlarray-0.0.51 → mlarray-0.0.53}/docs/optimization.md +0 -0
  15. {mlarray-0.0.51 → mlarray-0.0.53}/docs/schema.md +0 -0
  16. {mlarray-0.0.51 → mlarray-0.0.53}/docs/usage.md +0 -0
  17. {mlarray-0.0.51 → mlarray-0.0.53}/docs/why.md +0 -0
  18. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_asarray.py +0 -0
  19. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_bboxes_only.py +0 -0
  20. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_channel.py +0 -0
  21. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_compress_decompress.py +0 -0
  22. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_compressed_vs_uncompressed.py +0 -0
  23. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_in_memory_constructors.py +0 -0
  24. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_metadata_only.py +0 -0
  25. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_non_spatial.py +0 -0
  26. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_open.py +0 -0
  27. {mlarray-0.0.51 → mlarray-0.0.53}/examples/example_save_load.py +0 -0
  28. {mlarray-0.0.51 → mlarray-0.0.53}/mkdocs.yml +0 -0
  29. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray/__init__.py +0 -0
  30. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray/cli.py +0 -0
  31. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray/meta.py +0 -0
  32. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray/utils.py +0 -0
  33. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray.egg-info/SOURCES.txt +0 -0
  34. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray.egg-info/dependency_links.txt +0 -0
  35. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray.egg-info/entry_points.txt +0 -0
  36. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray.egg-info/requires.txt +0 -0
  37. {mlarray-0.0.51 → mlarray-0.0.53}/mlarray.egg-info/top_level.txt +0 -0
  38. {mlarray-0.0.51 → mlarray-0.0.53}/pyproject.toml +0 -0
  39. {mlarray-0.0.51 → mlarray-0.0.53}/setup.cfg +0 -0
  40. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_asarray.py +0 -0
  41. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_bboxes.py +0 -0
  42. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_compress_decompress.py +0 -0
  43. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_constructors.py +0 -0
  44. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_create.py +0 -0
  45. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_meta_safety.py +0 -0
  46. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_metadata.py +0 -0
  47. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_open.py +0 -0
  48. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_optimization.py +0 -0
  49. {mlarray-0.0.51 → mlarray-0.0.53}/tests/test_usage.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlarray
3
- Version: 0.0.51
3
+ Version: 0.0.53
4
4
  Summary: Array format specialized for Machine Learning with Blosc2 backend and standardized metadata.
5
5
  Author-email: Karol Gotkowski <karol.gotkowski@dkfz.de>
6
6
  License: MIT
@@ -1611,8 +1611,19 @@ class MLArray:
1611
1611
  self.support_metadata = True
1612
1612
  dparams = MLArray._resolve_dparams(dparams)
1613
1613
  ondisk = blosc2.open(str(filepath), dparams=dparams, mode="r")
1614
- cframe = ondisk.to_cframe()
1615
- self._store = blosc2.ndarray_from_cframe(cframe, copy=True)
1614
+ in_memory = blosc2.empty(
1615
+ ondisk.shape,
1616
+ dtype=ondisk.dtype,
1617
+ chunks=ondisk.chunks,
1618
+ blocks=ondisk.blocks,
1619
+ cparams=ondisk.schunk.cparams,
1620
+ dparams=ondisk.schunk.dparams,
1621
+ )
1622
+ for i in range(ondisk.schunk.nchunks):
1623
+ in_memory.schunk.update_chunk(i, ondisk.schunk.get_chunk(i))
1624
+ for key, value in ondisk.schunk.vlmeta.getall().items():
1625
+ in_memory.schunk.vlmeta[key] = value
1626
+ self._store = in_memory
1616
1627
  self._backend = "blosc2"
1617
1628
  self.mode = None
1618
1629
  self.mmap_mode = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlarray
3
- Version: 0.0.51
3
+ Version: 0.0.53
4
4
  Summary: Array format specialized for Machine Learning with Blosc2 backend and standardized metadata.
5
5
  Author-email: Karol Gotkowski <karol.gotkowski@dkfz.de>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes