Skip to content

Commit

Permalink
GH actions: add brainwire authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Oct 17, 2024
1 parent c07cda9 commit 5be8d60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ jobs:
INSECT_BRAIN_DB_USER: ${{ secrets.insect_brain_db_user }}
INSECT_BRAIN_DB_PASSWORD: ${{ secrets.insect_brain_db_password }}
CAVE_SECRET: ${{ secrets.cave_secret }}
BRAIN_WIRE_SECRET: ${{ secrets.brain_wire_secret }}
NAVIS_PLOT3D_BACKEND: plotly
QT_QPA_PLATFORM: offscreen
with:
run: |
python -c "import os;from caveclient import CAVEclient;client=CAVEclient();client.auth.save_token(os.getenv('CAVE_SECRET'))"
python -c "import os;from caveclient import CAVEclient;client=CAVEclient();client._server_address='https://global.brain-wire-test.org';client.auth.save_token(os.getenv('BRAIN_WIRE_SECRET'))"
python tests/test_tutorials.py
4 changes: 2 additions & 2 deletions navis/interfaces/h01.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from . import cave_utils

DATASTACK = "h01_c3_flat"
SERVER_ADDRESS = "https://global.brain-wire-test.org/"
SERVER_ADDRESS = "https://global.brain-wire-test.org"

def get_cave_client():
"""Get caveclient for H01 dataset.
Expand Down Expand Up @@ -46,7 +46,7 @@ def fetch_neurons(x, *, lod=2,
Containing :class:`navis.MeshNeuron`.
"""
return cave_utils.fetch_neurons(
x,
x,
lod=lod,
with_synapses=with_synapses,
datastack=datastack,
Expand Down

0 comments on commit 5be8d60

Please sign in to comment.