From 5be8d60d2de724ac39c63ac1b176d4b862ab32a6 Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Thu, 17 Oct 2024 16:53:37 +0100 Subject: [PATCH] GH actions: add brainwire authentication --- .github/workflows/test-tutorials.yml | 2 ++ navis/interfaces/h01.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-tutorials.yml b/.github/workflows/test-tutorials.yml index 9c3245fc..274f023c 100644 --- a/.github/workflows/test-tutorials.yml +++ b/.github/workflows/test-tutorials.yml @@ -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 diff --git a/navis/interfaces/h01.py b/navis/interfaces/h01.py index 92534b80..276f0f58 100644 --- a/navis/interfaces/h01.py +++ b/navis/interfaces/h01.py @@ -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. @@ -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,