Skip to content

Commit e4dd98a

Browse files
Merge pull request #165 from kabilar/patch
Patch issue with nullable attributes
2 parents 1d30cb8 + 48a1e76 commit e4dd98a

21 files changed

+112
-268
lines changed

.github/workflows/development.yaml

Lines changed: 0 additions & 177 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
make_github_release:
6+
uses: datajoint/.github/.github/workflows/make_github_release.yaml@main
7+
pypi_release:
8+
needs: make_github_release
9+
uses: datajoint/.github/.github/workflows/pypi_release.yaml@main
10+
secrets:
11+
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}}
12+
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
13+
with:
14+
UPLOAD_URL: ${{needs.make_github_release.outputs.release_upload_url}}
15+
mkdocs_release:
16+
uses: datajoint/.github/.github/workflows/mkdocs_release.yaml@main
17+
permissions:
18+
contents: write
19+
# devcontainer-build:
20+
# uses: datajoint/.github/.github/workflows/devcontainer-build.yaml@main
21+
# devcontainer-publish:
22+
# needs:
23+
# - devcontainer-build
24+
# uses: datajoint/.github/.github/workflows/devcontainer-publish.yaml@main
25+
# secrets:
26+
# DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
27+
# DOCKERHUB_TOKEN: ${{secrets.DOCKERHUB_TOKEN_FOR_ELEMENTS}}

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
# devcontainer-build:
8+
# uses: datajoint/.github/.github/workflows/devcontainer-build.yaml@main
9+
tests:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
py_ver: ["3.9", "3.10"]
14+
mysql_ver: ["8.0", "5.7"]
15+
include:
16+
- py_ver: "3.8"
17+
mysql_ver: "5.7"
18+
- py_ver: "3.7"
19+
mysql_ver: "5.7"
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{matrix.py_ver}}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{matrix.py_ver}}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install flake8 "black[jupyter]"
30+
- name: Run style tests
31+
run: |
32+
python_version=${{matrix.py_ver}}
33+
black element_array_ephys --check --verbose --target-version py${python_version//.}
34+

.github/workflows/u24_element_before_release.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/u24_element_release_call.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/u24_element_tag_to_release.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6-
## [Unreleased] - 2023-06-23
6+
## [0.2.11] - 2023-06-29
77

88
+ Update - Improve kilosort triggering routine - better logging, remove temporary files, robust resumable processing
9+
+ Add - Null value for `package_version` to patch bug
10+
+ Update - GitHub Actions workflows
11+
+ Update - README instructions
912

1013
## [0.2.10] - 2023-05-26
1114

README.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,40 @@
1-
# DataJoint Element - Array Electrophysiology Element
1+
[![PyPI version](https://badge.fury.io/py/element-array-ephys.svg)](http://badge.fury.io/py/element-array-ephys)
22

3-
DataJoint Element for extracellular array electrophysiology. DataJoint Elements
4-
collectively standardize and automate data collection and analysis for neuroscience
5-
experiments. Each Element is a modular pipeline for data storage and processing with
6-
corresponding database tables that can be combined with other Elements to assemble a
7-
fully functional pipeline.
3+
# DataJoint Element for Extracellular Electrophysiology
84

9-
![diagram](https://raw.githubusercontent.com/datajoint/element-array-ephys/main/images/diagram_flowchart.svg)
5+
DataJoint Element for extracellular array electrophysiology that processes data
6+
acquired with a polytrode probe
7+
(e.g. [Neuropixels](https://www.neuropixels.org), Neuralynx) using the
8+
[SpikeGLX](https://github.com/billkarsh/SpikeGLX) or
9+
[OpenEphys](https://open-ephys.org/gui) acquisition software and
10+
[MATLAB-based Kilosort](https://github.com/MouseLand/Kilosort) or [python-based
11+
Kilosort](https://github.com/MouseLand/pykilosort) spike sorting software. DataJoint
12+
Elements collectively standardize and automate data collection and analysis for
13+
neuroscience experiments. Each Element is a modular pipeline for data storage and
14+
processing with corresponding database tables that can be combined with other Elements
15+
to assemble a fully functional pipeline.
1016

11-
Installation and usage instructions can be found at the
12-
[Element documentation](https://datajoint.com/docs/elements/element-array-ephys).
17+
## Experiment flowchart
18+
19+
![flowchart](https://raw.githubusercontent.com/datajoint/element-array-ephys/main/images/diagram_flowchart.svg)
20+
21+
## Data Pipeline Diagram
22+
23+
![datajoint](https://raw.githubusercontent.com/datajoint/element-array-ephys/main/images/attached_array_ephys_element_acute.svg)
24+
25+
26+
## Getting Started
27+
28+
+ Install from PyPI
29+
30+
```bash
31+
pip install element-array-ephys
32+
```
33+
34+
+ [Interactive tutorial on GitHub Codespaces](https://github.com/datajoint/workflow-array-ephys#interactive-tutorial)
35+
36+
+ [Documentation](https://datajoint.com/docs/elements/element-array-ephys)
37+
38+
## Support
39+
40+
+ If you need help getting started or run into any errors, please contact our team by email at support@datajoint.com.

element_array_ephys/ephys_acute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def make(self, key):
910910
raise ValueError(f"Unknown task mode: {task_mode}")
911911

912912
creation_time, _, _ = kilosort.extract_clustering_info(kilosort_dir)
913-
self.insert1({**key, "clustering_time": creation_time})
913+
self.insert1({**key, "clustering_time": creation_time, "package_version": ""})
914914

915915

916916
@schema

element_array_ephys/ephys_chronic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def make(self, key):
839839
raise ValueError(f"Unknown task mode: {task_mode}")
840840

841841
creation_time, _, _ = kilosort.extract_clustering_info(kilosort_dir)
842-
self.insert1({**key, "clustering_time": creation_time})
842+
self.insert1({**key, "clustering_time": creation_time, "package_version": ""})
843843

844844

845845
@schema

element_array_ephys/ephys_no_curation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def make(self, key):
916916
raise ValueError(f"Unknown task mode: {task_mode}")
917917

918918
creation_time, _, _ = kilosort.extract_clustering_info(kilosort_dir)
919-
self.insert1({**key, "clustering_time": creation_time})
919+
self.insert1({**key, "clustering_time": creation_time, "package_version": ""})
920920

921921

922922
@schema

0 commit comments

Comments
 (0)