diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ba3e8e9..8bf0101 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: additional_dependencies: [tomli] files: ^(graphblas_algorithms|docs)/ - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.252 + rev: v0.0.253 hooks: - id: ruff - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/graphblas_algorithms/classes/graph.py b/graphblas_algorithms/classes/graph.py index 1296ed5..718264f 100644 --- a/graphblas_algorithms/classes/graph.py +++ b/graphblas_algorithms/classes/graph.py @@ -237,15 +237,15 @@ def get_iso_value(G, mask=None): cache["iso_value"] = A.ss.iso_value else: cache["iso_value"] + + # min_val, max_val = G.get_properties('min_element+ max_element+') + # SuiteSparse:GraphBLAS + elif A.ss.is_iso: + cache["iso_value"] = A.ss.iso_value + cache["is_iso"] = True else: - # min_val, max_val = G.get_properties('min_element+ max_element+') - # SuiteSparse:GraphBLAS - if A.ss.is_iso: - cache["iso_value"] = A.ss.iso_value - cache["is_iso"] = True - else: - cache["iso_value"] = None - cache["is_iso"] = False + cache["iso_value"] = None + cache["is_iso"] = False return cache["iso_value"]