Skip to content

Commit

Permalink
Update API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jul 11, 2024
1 parent 4b9a1e0 commit cc9197f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions morphapi/api/neuromorphorg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@


class NeuroMorpOrgAPI(Paths):
_base_url = "https://neuromorpho.org/api/neuron"
# Use the URL as advised in the API docs:
# https://neuromorpho.org/apiReference.html#introduction
_base_url = "http://cng.gmu.edu:8080/api/neuron"

_version = "CNG version" # which swc version, standardized or original

Expand All @@ -26,10 +28,10 @@ def __init__(self, *args, **kwargs):

# Check that neuromorpho.org is not down
try:
request("https://neuromorpho.org/api/health", verify=False)
request("http://cng.gmu.edu:8080/api/health", verify=False)
except requests.exceptions.RequestException as e:
raise ConnectionError(
f"It seems that neuromorphos API is down: {e}"
f"It seems that neuromorpho API is down: {e}"
)

self._fields = None
Expand Down

0 comments on commit cc9197f

Please sign in to comment.