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.
Files changed (106) hide show
  1. {valarray-0.4.2 → valarray-0.4.2.post1}/PKG-INFO +12 -4
  2. {valarray-0.4.2 → valarray-0.4.2.post1}/README.md +11 -3
  3. {valarray-0.4.2 → valarray-0.4.2.post1}/pyproject.toml +1 -1
  4. {valarray-0.4.2 → valarray-0.4.2.post1}/.coveragerc +0 -0
  5. {valarray-0.4.2 → valarray-0.4.2.post1}/.gitignore +0 -0
  6. {valarray-0.4.2 → valarray-0.4.2.post1}/assets/images/valarray_logo.svg +0 -0
  7. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core.mmd +0 -0
  8. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core_validation_errors.mmd +0 -0
  9. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/core_validation_functions.mmd +0 -0
  10. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/dependency_graphs/numpy.mmd +0 -0
  11. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue1_problem.py +0 -0
  12. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue1_solution.py +0 -0
  13. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue2_problem.py +0 -0
  14. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue2_solution.py +0 -0
  15. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue_3_problem.py +0 -0
  16. {valarray-0.4.2 → valarray-0.4.2.post1}/docs/example_code/introduction/issue_3_solution.py +0 -0
  17. {valarray-0.4.2 → valarray-0.4.2.post1}/requirements.txt +0 -0
  18. {valarray-0.4.2 → valarray-0.4.2.post1}/requirements_dev.txt +0 -0
  19. {valarray-0.4.2 → valarray-0.4.2.post1}/requirements_dev_optional.txt +0 -0
  20. {valarray-0.4.2 → valarray-0.4.2.post1}/test_data/core/string_utils.py +0 -0
  21. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/__init__.py +0 -0
  22. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/array_and_dtype.py +0 -0
  23. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/array_type_adapter.py +0 -0
  24. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/comparisons.py +0 -0
  25. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/errors_exceptions.py +0 -0
  26. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/validated_array.py +0 -0
  27. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/classes_for_testing/validators.py +0 -0
  28. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_axes_errors.py +0 -0
  29. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_dtype_errors.py +0 -0
  30. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_error_list.py +0 -0
  31. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_exceptions.py +0 -0
  32. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/errors_exceptions/test_values_errors.py +0 -0
  33. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_array.py +0 -0
  34. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_axes_and_fields.py +0 -0
  35. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_data_structures.py +0 -0
  36. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_misc.py +0 -0
  37. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_string_utils.py +0 -0
  38. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_utils.py +0 -0
  39. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/test_validators.py +0 -0
  40. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/field_values/test_ax_and_field_strings.py +0 -0
  41. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/field_values/test_val_field_values_core.py +0 -0
  42. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/field_values/test_val_field_values_utils.py +0 -0
  43. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_array.py +0 -0
  44. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_array_values.py +0 -0
  45. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_dtype.py +0 -0
  46. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/core/validation_functions/test_val_shape.py +0 -0
  47. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/common.py +0 -0
  48. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_adapter.py +0 -0
  49. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_numpy_array.py +0 -0
  50. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_numpy_comparisons.py +0 -0
  51. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_numpy_errors_and_exceptions.py +0 -0
  52. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/numpy/test_validation.py +0 -0
  53. {valarray-0.4.2 → valarray-0.4.2.post1}/tests/test_imports.py +0 -0
  54. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/__init__.py +0 -0
  55. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/__init__.py +0 -0
  56. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array.py +0 -0
  57. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/__init__.py +0 -0
  58. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/adapter.py +0 -0
  59. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/comparisons.py +0 -0
  60. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/array_type_adapter/errors.py +0 -0
  61. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/axes_and_fields.py +0 -0
  62. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/data_structures.py +0 -0
  63. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/__init__.py +0 -0
  64. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/error_list.py +0 -0
  65. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/exceptions.py +0 -0
  66. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/__init__.py +0 -0
  67. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/array_creation.py +0 -0
  68. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/axes.py +0 -0
  69. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/base.py +0 -0
  70. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/dtype.py +0 -0
  71. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/errors_exceptions/validation_errors/values.py +0 -0
  72. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/__init__.py +0 -0
  73. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/array.py +0 -0
  74. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/field.py +0 -0
  75. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/general.py +0 -0
  76. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/string_utils/headings.py +0 -0
  77. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/types/__init__.py +0 -0
  78. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/types/generics.py +0 -0
  79. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/types/other.py +0 -0
  80. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/utils.py +0 -0
  81. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/__init__.py +0 -0
  82. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/array.py +0 -0
  83. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/array_values.py +0 -0
  84. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/dtype.py +0 -0
  85. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/__init__.py +0 -0
  86. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/core.py +0 -0
  87. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/types_and_data_structures.py +0 -0
  88. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/field_values/utils.py +0 -0
  89. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/shape.py +0 -0
  90. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validation_functions/utils.py +0 -0
  91. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/__init__.py +0 -0
  92. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/base.py +0 -0
  93. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/types.py +0 -0
  94. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/core/validators/value_comparisons.py +0 -0
  95. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/__init__.py +0 -0
  96. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array.py +0 -0
  97. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/__init__.py +0 -0
  98. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/adapter.py +0 -0
  99. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/comparisons.py +0 -0
  100. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/array_type_adapter/errors.py +0 -0
  101. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/axes_and_fields.py +0 -0
  102. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/errors_exceptions.py +0 -0
  103. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/types.py +0 -0
  104. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/validation_functions.py +0 -0
  105. {valarray-0.4.2 → valarray-0.4.2.post1}/valarray/numpy/validators.py +0 -0
  106. {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,-2,3], [4,5,-6]]))
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
- >>> Invalid Array Values (>= 0):
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,-2,3], [4,5,-6]]))
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
- >>> Invalid Array Values (>= 0):
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
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "valarray"
7
- version = "0.4.2"
7
+ version = "0.4.2.post1"
8
8
  authors = [
9
9
  { name="J. Franek", email="franek.j27@email.cz" },
10
10
  ]
File without changes
File without changes