datatypical 0.7.0__tar.gz → 0.7.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datatypical
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Explainable instance significance discovery for scientific datasets
5
5
  Home-page: https://github.com/amaxiom/DataTypical
6
6
  Author: Amanda S. Barnard
@@ -156,7 +156,7 @@ DataTypical(
156
156
 
157
157
  ## Visualization Functions
158
158
  ```python
159
- from datatypical import significance_plot, heatmap, profile_plot
159
+ from datatypical_viz import significance_plot, heatmap, profile_plot
160
160
 
161
161
  # 1. Dual-perspective scatter plot
162
162
  significance_plot(results, significance='archetypal')
@@ -132,7 +132,7 @@ DataTypical(
132
132
 
133
133
  ## Visualization Functions
134
134
  ```python
135
- from datatypical import significance_plot, heatmap, profile_plot
135
+ from datatypical_viz import significance_plot, heatmap, profile_plot
136
136
 
137
137
  # 1. Dual-perspective scatter plot
138
138
  significance_plot(results, significance='archetypal')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datatypical
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Explainable instance significance discovery for scientific datasets
5
5
  Home-page: https://github.com/amaxiom/DataTypical
6
6
  Author: Amanda S. Barnard
@@ -156,7 +156,7 @@ DataTypical(
156
156
 
157
157
  ## Visualization Functions
158
158
  ```python
159
- from datatypical import significance_plot, heatmap, profile_plot
159
+ from datatypical_viz import significance_plot, heatmap, profile_plot
160
160
 
161
161
  # 1. Dual-perspective scatter plot
162
162
  significance_plot(results, significance='archetypal')
@@ -64,14 +64,21 @@ from sklearn.exceptions import ConvergenceWarning
64
64
 
65
65
  try:
66
66
  from numba import jit, prange
67
+ import numpy as np
68
+
69
+ # Test if Numba actually works with the current NumPy
70
+ @jit(nopython=True)
71
+ def _test(x): return x
72
+ _test(np.array([1]))
73
+
67
74
  NUMBA_AVAILABLE = True
68
- except ImportError:
75
+ except (ImportError, Exception):
76
+ # This catches the "NumPy version too new" error too!
69
77
  NUMBA_AVAILABLE = False
70
- # Dummy decorator if numba not available
71
78
  def jit(*args, **kwargs):
72
- def decorator(func):
73
- return func
74
- return decorator
79
+ return lambda f: f
80
+ def prange(n):
81
+ return range(n)
75
82
 
76
83
  try:
77
84
  import scipy.sparse as sp
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "datatypical"
7
- version = "0.7.0"
7
+ version = "0.7.1"
8
8
  description = "Explainable instance significance discovery for scientific datasets"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
File without changes
File without changes
File without changes