risk-network 0.0.9b16__tar.gz → 0.0.9b17__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.
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/PKG-INFO +1 -1
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/__init__.py +1 -1
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/contour.py +7 -21
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/permutation/permutation.py +3 -1
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/PKG-INFO +1 -1
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/LICENSE +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/MANIFEST.in +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/README.md +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/pyproject.toml +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/annotations/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/annotations/annotations.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/annotations/io.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/constants.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/log/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/log/console.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/log/parameters.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/community.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/domains.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/neighborhoods.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/geometry.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/graph/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/graph/network.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/graph/summary.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/io.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/canvas.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/labels.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/network.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/plotter.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/utils/colors.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/utils/layout.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/risk.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/hypergeom.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/permutation/__init__.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/permutation/test_functions.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/poisson.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/stats.py +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/SOURCES.txt +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/dependency_links.txt +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/requires.txt +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/top_level.txt +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/setup.cfg +0 -0
- {risk_network-0.0.9b16 → risk_network-0.0.9b17}/setup.py +0 -0
@@ -242,7 +242,7 @@ class Contour:
|
|
242
242
|
logger.error("Contour levels must be strictly increasing. Skipping contour plot.")
|
243
243
|
return None
|
244
244
|
|
245
|
-
# Set the contour color and linestyle
|
245
|
+
# Set the contour color, fill, and linestyle
|
246
246
|
contour_colors = [color for _ in range(levels - 1)]
|
247
247
|
# Plot the filled contours using fill_alpha for transparency
|
248
248
|
if fill_alpha and fill_alpha > 0:
|
@@ -258,33 +258,19 @@ class Contour:
|
|
258
258
|
alpha=fill_alpha,
|
259
259
|
)
|
260
260
|
|
261
|
-
# Plot the contour
|
262
|
-
|
261
|
+
# Plot the base contour line with the specified RGBA alpha for transparency
|
262
|
+
base_contour_color = [color]
|
263
|
+
base_contour_level = [contour_levels[0]]
|
264
|
+
ax.contour(
|
263
265
|
x,
|
264
266
|
y,
|
265
267
|
z,
|
266
|
-
levels=
|
267
|
-
colors=
|
268
|
+
levels=base_contour_level,
|
269
|
+
colors=base_contour_color,
|
268
270
|
linestyles=linestyle,
|
269
271
|
linewidths=linewidth,
|
270
272
|
)
|
271
273
|
|
272
|
-
# Set linewidth for the contour lines to 0 for levels other than the base level
|
273
|
-
c.set_linewidth(0)
|
274
|
-
try:
|
275
|
-
# Try setting linewidth directly on the QuadContourSet
|
276
|
-
c.set_linewidth(0)
|
277
|
-
except AttributeError:
|
278
|
-
# Fallback: Iterate over collections if the direct method fails
|
279
|
-
if hasattr(c, "collections"):
|
280
|
-
for i, collection in enumerate(c.collections):
|
281
|
-
collection.set_linewidth(0)
|
282
|
-
else:
|
283
|
-
# Raise an error if 'collections' is also not available
|
284
|
-
raise AttributeError(
|
285
|
-
"'QuadContourSet' object has neither 'set_linewidth' nor 'collections'"
|
286
|
-
)
|
287
|
-
|
288
274
|
def get_annotated_contour_colors(
|
289
275
|
self,
|
290
276
|
cmap: str = "gist_rainbow",
|
@@ -192,7 +192,9 @@ def _permutation_process_subset(
|
|
192
192
|
local_counts_depletion = np.zeros(observed_neighborhood_scores.shape)
|
193
193
|
local_counts_enrichment = np.zeros(observed_neighborhood_scores.shape)
|
194
194
|
|
195
|
-
#
|
195
|
+
# Limit the number of threads used by NumPy's BLAS implementation to 1 when more than one worker is used
|
196
|
+
# NOTE: This does not work for Mac M chips due to a bug in the threadpoolctl package
|
197
|
+
# This is currently a known issue and is being addressed by the maintainers [https://github.com/joblib/threadpoolctl/issues/135]
|
196
198
|
limits = None if max_workers == 1 else 1
|
197
199
|
with threadpool_limits(limits=limits, user_api="blas"):
|
198
200
|
# Initialize a local counter for batched progress updates
|
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
|
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
|