valarray 0.4.2__tar.gz → 0.4.2.post1__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.
- {valarray-0.4.2 → valarray-0.4.2.post1}/PKG-INFO +12 -4
- {valarray-0.4.2 → valarray-0.4.2.post1}/README.md +11 -3
- {valarray-0.4.2 → valarray-0.4.2.post1}/pyproject.toml +1 -1
- {valarray-0.4.2 → valarray-0.4.2.post1}/.coveragerc +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/.gitignore +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/assets/images/valarray_logo.svg +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core.mmd +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core_validation_errors.mmd +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core_validation_functions.mmd +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/numpy.mmd +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue1_problem.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue1_solution.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue2_problem.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue2_solution.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue_3_problem.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue_3_solution.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/requirements.txt +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/requirements_dev.txt +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/requirements_dev_optional.txt +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/test_data/core/string_utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/array_and_dtype.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/array_type_adapter.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/comparisons.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/errors_exceptions.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/validated_array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/validators.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_axes_errors.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_dtype_errors.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_error_list.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_exceptions.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_values_errors.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_axes_and_fields.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_data_structures.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_misc.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_string_utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_validators.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/field_values/test_ax_and_field_strings.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/field_values/test_val_field_values_core.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/field_values/test_val_field_values_utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_array_values.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_dtype.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_shape.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/common.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_adapter.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_numpy_array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_numpy_comparisons.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_numpy_errors_and_exceptions.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_validation.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/tests/test_imports.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/adapter.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/comparisons.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/errors.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/axes_and_fields.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/data_structures.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/error_list.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/exceptions.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/array_creation.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/axes.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/base.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/dtype.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/values.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/field.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/general.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/headings.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/types/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/types/generics.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/types/other.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/array_values.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/dtype.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/core.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/types_and_data_structures.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/shape.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/utils.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/base.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/types.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/value_comparisons.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/__init__.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/adapter.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/comparisons.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/errors.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/axes_and_fields.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/errors_exceptions.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/types.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/validation_functions.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/validators.py +0 -0
- {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: valarray
|
|
3
|
-
Version: 0.4.2
|
|
3
|
+
Version: 0.4.2.post1
|
|
4
4
|
Summary: Library for validating numpy arrays.
|
|
5
5
|
Project-URL: Homepage, https://codeberg.org/jfranek/valarray
|
|
6
6
|
Author-email: "J. Franek" <franek.j27@email.cz>
|
|
@@ -44,14 +44,22 @@ class ExampleValidatedNumpyArray(ValidatedNumpyArray[np.float32]):
|
|
|
44
44
|
Validate a numpy array:
|
|
45
45
|
```python
|
|
46
46
|
try:
|
|
47
|
-
v_arr = ExampleValidatedNumpyArray(np.array([[1
|
|
47
|
+
v_arr = ExampleValidatedNumpyArray(np.array([[1, -2, 3, 4], [5, -6, 7, 8]]))
|
|
48
48
|
except ValidationException as v_exc:
|
|
49
49
|
print(v_exc)
|
|
50
50
|
|
|
51
|
-
|
|
52
51
|
>>> 'ExampleValidatedNumpyArray' validation failed:
|
|
53
52
|
>>> Incorrect axis sizes: (2, *4*), expected (any, 3).
|
|
54
|
-
|
|
53
|
+
|
|
54
|
+
try:
|
|
55
|
+
v_arr = ExampleValidatedNumpyArray(
|
|
56
|
+
np.array([[1, -2, 3], [4, 5, -6]], dtype=np.float32)
|
|
57
|
+
)
|
|
58
|
+
except ValidationException as v_exc:
|
|
59
|
+
print(v_exc)
|
|
60
|
+
|
|
61
|
+
>>> 'ExampleValidatedNumpyArray' validation failed:
|
|
62
|
+
>>> Invalid Array Values (< 0):
|
|
55
63
|
>>> [-2.0, -6.0]
|
|
56
64
|
```
|
|
57
65
|
|
|
@@ -28,14 +28,22 @@ class ExampleValidatedNumpyArray(ValidatedNumpyArray[np.float32]):
|
|
|
28
28
|
Validate a numpy array:
|
|
29
29
|
```python
|
|
30
30
|
try:
|
|
31
|
-
v_arr = ExampleValidatedNumpyArray(np.array([[1
|
|
31
|
+
v_arr = ExampleValidatedNumpyArray(np.array([[1, -2, 3, 4], [5, -6, 7, 8]]))
|
|
32
32
|
except ValidationException as v_exc:
|
|
33
33
|
print(v_exc)
|
|
34
34
|
|
|
35
|
-
|
|
36
35
|
>>> 'ExampleValidatedNumpyArray' validation failed:
|
|
37
36
|
>>> Incorrect axis sizes: (2, *4*), expected (any, 3).
|
|
38
|
-
|
|
37
|
+
|
|
38
|
+
try:
|
|
39
|
+
v_arr = ExampleValidatedNumpyArray(
|
|
40
|
+
np.array([[1, -2, 3], [4, 5, -6]], dtype=np.float32)
|
|
41
|
+
)
|
|
42
|
+
except ValidationException as v_exc:
|
|
43
|
+
print(v_exc)
|
|
44
|
+
|
|
45
|
+
>>> 'ExampleValidatedNumpyArray' validation failed:
|
|
46
|
+
>>> Invalid Array Values (< 0):
|
|
39
47
|
>>> [-2.0, -6.0]
|
|
40
48
|
```
|
|
41
49
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core_validation_functions.mmd
RENAMED
|
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
|
{valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/array_type_adapter.py
RENAMED
|
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
|
{valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_array_values.py
RENAMED
|
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
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/axes.py
RENAMED
|
File without changes
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/base.py
RENAMED
|
File without changes
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/dtype.py
RENAMED
|
File without changes
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/values.py
RENAMED
|
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
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/__init__.py
RENAMED
|
File without changes
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/core.py
RENAMED
|
File without changes
|
|
File without changes
|
{valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/utils.py
RENAMED
|
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
|