Skip to content

Commit 4bcdcb8

Browse files
authored
Update some repo metadata (#11)
* add circleci badge * make citation.cff release-independent * skip ci on deploy * clarify copyright for multiple authors * update changelog * add metadata * address depr warn
1 parent d83c1c3 commit 4bcdcb8

File tree

20 files changed

+57
-67
lines changed

20 files changed

+57
-67
lines changed

.github/workflows/python_build-test-deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ jobs:
116116
- name: Deploy
117117
uses: JamesIves/github-pages-deploy-action@v4
118118
with:
119-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120-
BRANCH: gh-pages # The branch the action should deploy to.
121-
FOLDER: docs/_build/html # The folder the action should deploy.
122-
CLEAN: true # Automatically remove deleted files from the deploy branch
119+
github_token: ${{ secrets.GITHUB_TOKEN }}
120+
branch: gh-pages # The branch the action should deploy to.
121+
folder: docs/_build/html # The folder the action should deploy.
122+
clean: true # Automatically remove deleted files from the deploy branch
123+
commit-message: "deploy to gh-pages [skip ci]"

CITATION.cff

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
---
33
# Metadata for citation of this software according to the CFF format (https://citation-file-format.github.io/)
44
cff-version: 1.2.0
5+
title: "eeg_positions -- compute and plot standard EEG electrode positions."
56
message: "If you use this software, please cite it using the metadata in this file."
6-
abstract: "Compute and plot standard EEG electrode positions."
77
authors:
88
- given-names: "Stefan"
99
family-names: "Appelhoff"
1010
orcid: "https://orcid.org/0000-0001-8002-0877"
1111
- given-names: "Clemens"
1212
family-names: "Brunner"
1313
orcid: "https://orcid.org/0000-0002-6030-2233"
14-
title: "eeg_positions"
15-
version: "2.0.0"
16-
doi: "10.5281/zenodo.4540097"
17-
date-released: "2021-02-13"
14+
type: software
1815
repository-code: "https://github.com/sappelhoff/eeg_positions"
1916
url: "https://stefanappelhoff.com/eeg_positions/"
17+
license: BSD-3-Clause
18+
identifiers:
19+
- description: "Code archive on Zenodo"
20+
type: doi
21+
value: 10.5281/zenodo.4540097
2022
keywords:
2123
- "EEG"
2224
- "neuroscience"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2018-2022, Stefan Appelhoff
3+
Copyright (c) 2018-2022, Stefan Appelhoff et al. (see CITATION.cff)
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[![DOI](https://zenodo.org/badge/136149692.svg)](https://zenodo.org/badge/latestdoi/136149692)
2+
[![CircleCI docs](https://circleci.com/gh/sappelhoff/eeg_positions/tree/main.svg?style=shield)](https://circleci.com/gh/sappelhoff/eeg_positions/tree/main)
23
[![Python build and test and deploy](https://github.com/sappelhoff/eeg_positions/workflows/Python%20build%20and%20test%20and%20deploy/badge.svg)](https://github.com/sappelhoff/eeg_positions/actions?query=workflow%3A%22Python+build+and+test+and+deploy%22)
34
[![Coverage](https://codecov.io/gh/sappelhoff/eeg_positions/branch/main/graph/badge.svg)](https://codecov.io/gh/sappelhoff/eeg_positions)
45
[![Latest PyPI release](https://img.shields.io/pypi/v/eeg_positions.svg)](https://pypi.org/project/eeg_positions/)
56

7+
68
# eeg_positions
79

810
Compute and plot standard EEG electrode positions.
@@ -19,7 +21,7 @@ There are two common ways to make use of this repository:
1921
1. Use `eeg_positions` as a Python package (install through `pip install eeg_positions`),
2022
and then obtain the EEG electrode positions through the `get_elec_coords` function.
2123
See the [Examples](https://stefanappelhoff.com/eeg_positions/auto_examples/index.html)
22-
and [API documentation](https://stefanappelhoff.com/eeg_positions/api.html)
24+
and [API documentation](https://stefanappelhoff.com/eeg_positions/api.html).
2325

2426
# Cite
2527

docs/changes.rst

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,28 @@
44
Changelog
55
=========
66

7-
v2.1.0 (unreleased)
8-
-------------------
9-
- nothing yet
7+
.. _Stefan Appelhoff: https://stefanappelhoff.com/
8+
.. _Clemens Brunner: https://github.com/cbrnr
109

11-
v2.0.0 (2021-02-13)
12-
-------------------
13-
- documentation pages are available
14-
- ``eeg_positions`` is a package on `PyPI <https://pypi.org/project/eeg-positions/>`_
15-
- a consistent API is available and documented
16-
- several modules have been renamed and restructured
17-
- users have a choice of where to place the equator of the sphere
18-
- ``eeg_positions`` now has an in-built (optional) integration with MNE-Python
19-
- test suite is now run through the GitHub actions continuous integration service
20-
- alias locations that are not part of the 5% system are now available (e.g., M1, A1)
10+
2.1.0 (unreleased)
11+
------------------
12+
- Add a ``show_axis`` parameter to :func:`eeg_positions.plot_coords`, by `Clemens Brunner`_ (:github:`#7`)
2113

22-
v1.0.0 (2020-03-19)
23-
-------------------
24-
- first git tagged release
14+
2.0.0 (2021-02-13)
15+
------------------
16+
- documentation pages are available, by `Stefan Appelhoff`_
17+
- ``eeg_positions`` is a package on `PyPI <https://pypi.org/project/eeg-positions/>`_, by `Stefan Appelhoff`_
18+
- a consistent API is available and documented, by `Stefan Appelhoff`_
19+
- several modules have been renamed and restructured, by `Stefan Appelhoff`_
20+
- users have a choice of where to place the equator of the sphere, by `Stefan Appelhoff`_
21+
- ``eeg_positions`` now has an in-built (optional) integration with MNE-Python, by `Stefan Appelhoff`_
22+
- test suite is now run through the GitHub actions continuous integration service, by `Stefan Appelhoff`_
23+
- alias locations that are not part of the 5% system are now available (e.g., M1, A1), by `Stefan Appelhoff`_
2524

26-
v0.0.0 (2018-06-05)
27-
-------------------
28-
- initial commit to the repository
25+
1.0.0 (2020-03-19)
26+
------------------
27+
- first git tagged release, by `Stefan Appelhoff`_
28+
29+
0.0.0 (2018-06-05)
30+
------------------
31+
- initial commit to the repository, by `Stefan Appelhoff`_

docs/conf.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
33
See: https://www.sphinx-doc.org/en/master/usage/configuration.html
44
"""
5-
# Copyright (c) 2018-2022, Stefan Appelhoff
6-
# BSD-3-Clause
75

86
import os
97
import sys
@@ -25,8 +23,12 @@
2523
"numpydoc",
2624
"sphinx_copybutton",
2725
"sphinxcontrib.bibtex",
26+
"sphinx_github_role",
2827
]
2928

29+
# configure sphinx-github-role
30+
github_default_org_project = ("sappelhoff", "eeg_positions")
31+
3032
# configure sphinxcontrib.bibtex
3133
bibtex_bibfiles = ["references.bib"]
3234

@@ -63,7 +65,12 @@
6365

6466
# General information about the project.
6567
project = "eeg_positions"
66-
copyright = "2018-{}, Stefan Appelhoff".format(date.today().year)
68+
copyright = (
69+
f"2018-{date.today().year}, Stefan Appelhoff et al. (see "
70+
"<a href='https://github.com/sappelhoff/eeg_positions/blob/main/CITATION.cff'"
71+
">CITATION.cff</a>)"
72+
)
73+
6774
author = "Stefan Appelhoff"
6875
version = eeg_positions.__version__
6976
release = version

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ and obtain the appropriate citation from the *"Cite as"* section there.
107107
Acknowledgements
108108
================
109109

110-
My thanks to:
110+
Thanks to:
111111

112112
- Robert Oostenveld for writing his blog post on EEG electrode positions
113113

@@ -116,7 +116,7 @@ My thanks to:
116116
"intermediate points on a great circle" (see also :footcite:`edwilliams`)
117117

118118

119-
- "Nominal Animal" who helped me to figure out the math for
119+
- "Nominal Animal" who helped figure out the math for
120120
the ``find_point_at_fraction`` function :footcite:`stackexchange-nominal`
121121

122122
References

eeg_positions/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Compute and plot standard EEG electrode positions."""
2-
# Copyright (c) 2018-2022, Stefan Appelhoff
3-
# BSD-3-Clause
42

53
__version__ = "2.1.0.dev0"
64

eeg_positions/compute.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Calculate standard EEG electrode positions on a sphere."""
2-
# Copyright (c) 2018-2022, Stefan Appelhoff
3-
# BSD-3-Clause
42

53
import ast
64
import os

eeg_positions/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Defining all horizontal, sagittal, and coronal contours and 10XX systems."""
2-
# Copyright (c) 2018-2022, Stefan Appelhoff
3-
# BSD-3-Clause
42

53
import pkg_resources
64

0 commit comments

Comments
 (0)