arraybridge 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl

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.
arraybridge/__init__.py CHANGED
@@ -5,7 +5,7 @@ This package provides automatic memory type conversion, declarative decorators,
5
5
  and unified utilities for working with multiple array/tensor frameworks.
6
6
  """
7
7
 
8
- __version__ = "0.3.1"
8
+ __version__ = "0.3.2"
9
9
 
10
10
  from . import decorators as _decorators
11
11
  from .array_geometry import ArrayGeometry
arraybridge/decorators.py CHANGED
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, TypeVar, cast
23
23
 
24
24
  import numpy as np
25
25
  from metaclass_registry import AutoRegisterMeta, RegistryFamily, RegistryKeyAttribute
26
+ from python_introspect import RuntimeParameterDeclarationABC
26
27
 
27
28
  from arraybridge.array_payload import ArrayPayload
28
29
  from arraybridge.oom_recovery import _execute_with_oom_recovery
@@ -60,7 +61,7 @@ class DtypeConversion(Enum):
60
61
  return dtype_map.get(self, None)
61
62
 
62
63
 
63
- class DtypeConversionConfig(ABC):
64
+ class DtypeConversionConfig(RuntimeParameterDeclarationABC):
64
65
  """Nominal dtype conversion config surface consumed by decorators."""
65
66
 
66
67
  @property
@@ -90,7 +91,7 @@ class DtypeConversionConfig(ABC):
90
91
  )
91
92
 
92
93
 
93
- class SliceBySliceRuntimeParameter:
94
+ class SliceBySliceRuntimeParameter(RuntimeParameterDeclarationABC):
94
95
  """Nominal slice-by-slice execution parameter consumed by decorators."""
95
96
 
96
97
  preserve_for_execution = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arraybridge
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Unified API for NumPy, CuPy, PyTorch, TensorFlow, JAX, and pyclesperanto with automatic memory type conversion
5
5
  Project-URL: Homepage, https://github.com/OpenHCSDev/arraybridge
6
6
  Project-URL: Documentation, https://arraybridge.readthedocs.io
@@ -23,6 +23,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
23
  Requires-Python: >=3.10
24
24
  Requires-Dist: metaclass-registry>=0.1.5
25
25
  Requires-Dist: numpy>=1.20
26
+ Requires-Dist: python-introspect>=0.1.11
26
27
  Provides-Extra: all
27
28
  Requires-Dist: cupy>=10.0; extra == 'all'
28
29
  Requires-Dist: jax>=0.3; extra == 'all'
@@ -1,10 +1,10 @@
1
- arraybridge/__init__.py,sha256=tFoqN6eCMlWMuoYD0Qy1tpsQK_ZZmFyvpUTs-4GodVs,2326
1
+ arraybridge/__init__.py,sha256=xFy8ESRzsIy8ydjdPQs33C5Ed6HH6YUsn65HSmQTtzM,2326
2
2
  arraybridge/array_geometry.py,sha256=CopfGmFVKwV5l-lOTImhm1YVh18weUng0ReEF58qlPI,1689
3
3
  arraybridge/array_operations.py,sha256=fp69o9BYcCzfhmLcWrH68SVGSfPL3nb6Cty-Amd_oQM,13082
4
4
  arraybridge/array_payload.py,sha256=6_jJwPRya0MHrUNSA9kXPlTISpLa0G74rqDValGXKx4,1079
5
5
  arraybridge/converters.py,sha256=q44E6Pg1rJz8yq6WQIPLOZPv1lqqcUcEG4Gh4D5M1_o,2649
6
6
  arraybridge/converters_registry.py,sha256=_hHtbd-3SMIKUw8fvNu3twPWJY7qHyNyQ_NhVp3eSHQ,5647
7
- arraybridge/decorators.py,sha256=bJOShfRHZ_HiK4I_ODBALKeJEpnq4PI9kQqwa_uSDFY,19855
7
+ arraybridge/decorators.py,sha256=mYIxBbCuWQVN8dhAE2M7i2Yo0KbcMyY4MZmsfGXGm-0,19975
8
8
  arraybridge/dtype_scaling.py,sha256=KDgYyCvxgsQXLJJl_bs5nH46zQimsA7c1Olv6xJ2z1o,831
9
9
  arraybridge/exceptions.py,sha256=fhej5ZS39QcBFWzNeNYjoqeLVnOgwwp-cWIme25jyuo,752
10
10
  arraybridge/framework_config.py,sha256=5yTTt9NWcwzKDMXbc-fqCdiFl-piKOt3SUnxmRXXCQk,744
@@ -15,7 +15,7 @@ arraybridge/slice_processing.py,sha256=5R10OmHW8BSbJFwT1URd2Sz3P15o5EhaI2VnVUUIv
15
15
  arraybridge/stack_utils.py,sha256=FVikN0XG-Xryw-1p9MaSRUTZet7kLcy0gTEERSjc9r4,6915
16
16
  arraybridge/types.py,sha256=1otpHqFJfGc9RY40VCzNCkqpTnR8cfckhY44HnuGudI,33191
17
17
  arraybridge/utils.py,sha256=RqThtYScPEOEQG491dA8b_VvUTjgcFhwLbh0erQu5Ns,4833
18
- arraybridge-0.3.1.dist-info/METADATA,sha256=F-SBc7U8fDOPtLKjeE-0FuOU_YMzoMq_MDjR_NNKK8o,5234
19
- arraybridge-0.3.1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
20
- arraybridge-0.3.1.dist-info/licenses/LICENSE,sha256=xagEoeTAj1WT64RmyR3E6HH-eTGdgXN6gqPMUUt7L_Y,1070
21
- arraybridge-0.3.1.dist-info/RECORD,,
18
+ arraybridge-0.3.2.dist-info/METADATA,sha256=tX2dNiYptc7DpXQUqV8x5BX5RzVSMLOD9wM-4xQmg5o,5275
19
+ arraybridge-0.3.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
20
+ arraybridge-0.3.2.dist-info/licenses/LICENSE,sha256=xagEoeTAj1WT64RmyR3E6HH-eTGdgXN6gqPMUUt7L_Y,1070
21
+ arraybridge-0.3.2.dist-info/RECORD,,