From 8b867f1aa19620d7945691ae3a69b293a5c068c2 Mon Sep 17 00:00:00 2001 From: Nicholas Landry Date: Fri, 3 Feb 2023 09:35:30 -0500 Subject: [PATCH] update to v0.5.4 --- CHANGELOG.md | 5 +++++ CITATION.cff | 2 +- docs/source/conf.py | 2 +- setup.py | 2 +- xgi/readwrite/xgi_data.py | 6 +++--- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e24c74cc5..d03c91b55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v0.5.4 + +* Fixed issue #270 [#271](https://github.com/ComplexGroupInteractions/xgi/pull/271) (@nwlandry). +* Fixed the centralities so that they are positive and 1-normalized [#274](https://github.com/ComplexGroupInteractions/xgi/pull/274) (@nwlandry). + ## v0.5.3 * Added support for NetworkX 3.0, removed support for Python 3.7, and changed all scipy sparse matrices to scipy sparse arrays [#268](https://github.com/ComplexGroupInteractions/xgi/pull/268) (@nwlandry). diff --git a/CITATION.cff b/CITATION.cff index 4c77bae81..6c5aa7b0d 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -26,4 +26,4 @@ cff-version: "1.1.0" license: "BSD-3" message: "If you use this software, please cite it using these metadata." title: XGI -version: "0.5.3" +version: "0.5.4" diff --git a/docs/source/conf.py b/docs/source/conf.py index d5eb73bd5..27aa510ff 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,7 +21,7 @@ # -- Project information ----------------------------------------------------- project = "XGI" copyright = "Copyright (C) 2022 XGI Developers" -release = "0.5.3" +release = "0.5.4" # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 2921dc783..a6e074970 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import setuptools from setuptools import setup -__version__ = "0.5.3" +__version__ = "0.5.4" if sys.version_info < (3, 8): sys.exit("XGI requires Python 3.8 or later.") diff --git a/xgi/readwrite/xgi_data.py b/xgi/readwrite/xgi_data.py index 2c97c4a06..d23beb472 100644 --- a/xgi/readwrite/xgi_data.py +++ b/xgi/readwrite/xgi_data.py @@ -183,13 +183,13 @@ def _request_json_from_url(url): XGIError If the connection fails or if there is a bad HTTP request. """ - + try: r = requests.get(url) except requests.ConnectionError: raise XGIError("Connection Error!") - + if r.ok: return r.json() else: - raise XGIError(f"Error: HTTP response {r.status_code}") \ No newline at end of file + raise XGIError(f"Error: HTTP response {r.status_code}")