From 0c6aa8fbac6d1b595eff9e384120968b8baae3d0 Mon Sep 17 00:00:00 2001 From: Brenda Praggastis Date: Mon, 10 Jun 2024 15:19:22 -0700 Subject: [PATCH 1/2] fixes issue 151 on Github --- hypernetx/algorithms/s_centrality_measures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypernetx/algorithms/s_centrality_measures.py b/hypernetx/algorithms/s_centrality_measures.py index e56f55cd..4915ca3d 100644 --- a/hypernetx/algorithms/s_centrality_measures.py +++ b/hypernetx/algorithms/s_centrality_measures.py @@ -77,7 +77,7 @@ def _s_centrality(func, H, s=1, edges=True, f=None, return_singletons=True, **kw vertices = h.nodes if h.shape[edges * 1] == 1: - stats = {v: 0 for v in vertices} + stats.update({v: 0 for v in vertices}) else: g = h.get_linegraph(s=s, edges=edges) stats.update({k: v for k, v in func(g, **kwargs).items()}) From 81e17c74bcfb96421561f2748b3cba17001bb756 Mon Sep 17 00:00:00 2001 From: Mark Bonicillo Date: Mon, 10 Jun 2024 17:00:43 -0700 Subject: [PATCH 2/2] =?UTF-8?q?bump:=20version=202.3.3=20=E2=86=92=202.3.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cz.toml | 2 +- docs/source/conf.py | 2 +- hypernetx/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.cz.toml b/.cz.toml index 570b859b..a8be1ec7 100644 --- a/.cz.toml +++ b/.cz.toml @@ -1,6 +1,6 @@ [tool.commitizen] name = "cz_conventional_commits" -version = "2.3.3" +version = "2.3.4" version_provider = "poetry" version_files = [ "pyproject.toml", diff --git a/docs/source/conf.py b/docs/source/conf.py index c72b4246..40671edf 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,7 +19,7 @@ import os -__version__ = "2.3.3" +__version__ = "2.3.4" # If extensions (or modules to document with autodoc) are in another directory, diff --git a/hypernetx/__init__.py b/hypernetx/__init__.py index 3ea7c6f7..5d7e9784 100644 --- a/hypernetx/__init__.py +++ b/hypernetx/__init__.py @@ -11,4 +11,4 @@ from hypernetx.utils import * from hypernetx.utils.toys import * -__version__ = "2.3.3" +__version__ = "2.3.4" diff --git a/pyproject.toml b/pyproject.toml index c60467a7..0142d42b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hypernetx" -version = "2.3.3" +version = "2.3.4" description = "HyperNetX is a Python library for the creation and study of hypergraphs." authors = ["Brenda Praggastis ", "Dustin Arendt ", "Sinan Aksoy ", "Emilie Purvine ",