Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Feb 13, 2024
1 parent 23bdac2 commit b9e2f38
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.11.0
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
3 changes: 2 additions & 1 deletion bsb_neuron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"""

from bsb.simulation import SimulationBackendPlugin

from . import devices
from .adapter import NeuronAdapter
from .simulation import NeuronSimulation
from . import devices

__version__ = "0.0.0b2"
__plugin__ = SimulationBackendPlugin(Simulation=NeuronSimulation, Adapter=NeuronAdapter)
6 changes: 3 additions & 3 deletions bsb_neuron/devices/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .spike_generator import SpikeGenerator
from .current_clamp import CurrentClamp
from .ion_recorder import IonRecorder
from .spike_generator import SpikeGenerator
from .synapse_recorder import SynapseRecorder
from .voltage_clamp import VoltageClamp
from .voltage_recorder import VoltageRecorder
from .synapse_recorder import SynapseRecorder
from .ion_recorder import IonRecorder
3 changes: 2 additions & 1 deletion bsb_neuron/devices/current_clamp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from bsb import config
from bsb.reporting import warn
from bsb.simulation.targetting import LocationTargetting

from ..device import NeuronDevice
from bsb.reporting import warn


@config.node
Expand Down
7 changes: 5 additions & 2 deletions bsb_neuron/devices/ion_recorder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ..device import NeuronDevice
import numpy as np

from ..device import NeuronDevice


class IonRecorder(NeuronDevice):
defaults = {
Expand Down Expand Up @@ -60,5 +61,7 @@ class IonicCurrentRecorder(_IonicRecorder, slug="current", record=_record_i):
pass


class IonicConcentrationRecorder(_IonicRecorder, slug="concentration", record=_record_c):
class IonicConcentrationRecorder(
_IonicRecorder, slug="concentration", record=_record_c
):
pass
1 change: 1 addition & 0 deletions bsb_neuron/devices/spike_generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from bsb import config
from bsb.config import types
from bsb.simulation.targetting import LocationTargetting

from ..device import NeuronDevice


Expand Down
3 changes: 2 additions & 1 deletion bsb_neuron/devices/synapse_recorder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from bsb.simulation.targetting import LocationTargetting
from bsb import config
from bsb.simulation.targetting import LocationTargetting

from ..device import NeuronDevice


Expand Down
5 changes: 3 additions & 2 deletions bsb_neuron/devices/voltage_recorder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ..device import NeuronDevice
from bsb.simulation.targetting import LocationTargetting
from bsb import config
from bsb.simulation.targetting import LocationTargetting

from ..device import NeuronDevice


@config.node
Expand Down
1 change: 1 addition & 0 deletions bsb_neuron/simulation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from bsb import config
from bsb.config import types
from bsb.simulation.simulation import Simulation

from .cell import NeuronCell
from .connection import NeuronConnection
from .device import NeuronDevice
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dynamic = ["version", "description"]
dependencies = [
"bsb-core>=4.0.0b0,<=4.0.0b9999",
"nrn-patch>=4.0.0b3,<=4.0.0b9999",
"arborize[neuron]>=4.0.0b1,<=4.0.0b9999"
"arborize[neuron]>=4.0.0b3,<=4.0.0b9999"
]

[project.entry-points."bsb.simulation_backends"]
Expand Down

0 comments on commit b9e2f38

Please sign in to comment.