Skip to content

Commit 90b81e3

Browse files
author
Thinh Nguyen
authored
Merge pull request #179 from JaerongA/datajoint-spikeinterface
SpikeInterface integration (WIP)
2 parents 6184b2f + 7eaefa4 commit 90b81e3

File tree

15 files changed

+1464
-2453
lines changed

15 files changed

+1464
-2453
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Test
22
on:
33
push:
4+
branches:
5+
- main
46
pull_request:
7+
branches:
8+
- main
59
workflow_dispatch:
610
jobs:
711
devcontainer-build:
@@ -31,4 +35,3 @@ jobs:
3135
run: |
3236
python_version=${{matrix.py_ver}}
3337
black element_array_ephys --check --verbose --target-version py${python_version//.}
34-

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ exclude: (^.github/|^docs/|^images/)
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.4.0
6+
rev: v4.5.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
@@ -16,7 +16,7 @@ repos:
1616

1717
# black
1818
- repo: https://github.com/psf/black
19-
rev: 22.12.0
19+
rev: 24.2.0
2020
hooks:
2121
- id: black
2222
- id: black-jupyter
@@ -25,15 +25,15 @@ repos:
2525

2626
# isort
2727
- repo: https://github.com/pycqa/isort
28-
rev: 5.11.2
28+
rev: 5.13.2
2929
hooks:
3030
- id: isort
3131
args: ["--profile", "black"]
3232
description: Sorts imports in an alphabetical order
3333

3434
# flake8
3535
- repo: https://github.com/pycqa/flake8
36-
rev: 4.0.1
36+
rev: 7.0.0
3737
hooks:
3838
- id: flake8
3939
args: # arguments to configure flake8

element_array_ephys/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1+
"""
2+
isort:skip_file
3+
"""
4+
5+
import logging
6+
import os
7+
8+
import datajoint as dj
9+
10+
11+
__all__ = ["ephys", "get_logger"]
12+
13+
dj.config["enable_python_native_blobs"] = True
14+
15+
16+
def get_logger(name):
17+
log = logging.getLogger(name)
18+
log.setLevel(os.getenv("LOGLEVEL", "INFO"))
19+
return log
20+
21+
122
from . import ephys_acute as ephys

0 commit comments

Comments
 (0)