Skip to content

Commit

Permalink
update to v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Feb 3, 2023
1 parent 40d2fba commit 8b867f1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# -- Project information -----------------------------------------------------
project = "XGI"
copyright = "Copyright (C) 2022 XGI Developers"
release = "0.5.3"
release = "0.5.4"

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
6 changes: 3 additions & 3 deletions xgi/readwrite/xgi_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
raise XGIError(f"Error: HTTP response {r.status_code}")

0 comments on commit 8b867f1

Please sign in to comment.