Skip to content

Commit 24ef9aa

Browse files
MAINT: Update code credit (mne-tools#13093)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent 9e7fe95 commit 24ef9aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1871
-21
lines changed

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Eduard Ort <eduardxort@gmail.com> examplename <e.ort@vu.nl>
8686
Ellen Lau <ellenlau@umd.edu> ellenlau <ellenlau@umd.edu>
8787
Emily Stephen <emilyps14@gmail.com> Emily P. Stephen <emilyps14@gmail.com>
8888
Emily Stephen <emilyps14@gmail.com> emilyps14 <emilyps14@gmail.com>
89+
Emma Bailey <93327939+emma-bailey@users.noreply.github.com> emma-bailey <93327939+emma-bailey@users.noreply.github.com>
8990
Enrico Varano <enricovarano@gmail.com> enricovara <69973551+enricovara@users.noreply.github.com>
9091
Enzo Altamiranda <enzo.alt@gmail.com> enzo <enzo.alt@gmail.com>
9192
Eric Larson <larson.eric.d@gmail.com> Eric Larson <larson.eric.d@gmail.com>
@@ -315,6 +316,7 @@ Sara Sommariva <sommariva@dima.unige.it> sarasommariva <sommariva@dima.unige.it>
315316
Sebastien Treguer <sfox@riseup.net> DataFox <sfox@riseup.net>
316317
Sena Er <2799280+sena-neuro@users.noreply.github.com> Sena <2799280+sena-neuro@users.noreply.github.com>
317318
Senwen Deng <36327760+snwnde@users.noreply.github.com> Senwen DENG <36327760+snwnde@users.noreply.github.com>
319+
Shristi Baral <shristi.baral@aalto.fi> Shristi Baral <shristi.baral@aalto.fi>
318320
Silvia Cotroneo <78911192+sfc-neuro@users.noreply.github.com> sfc-neuro <78911192+sfc-neuro@users.noreply.github.com>
319321
Simon Kern <simon.kern@online.de> Simon Kern <14980558+skjerns@users.noreply.github.com>
320322
Simon Kern <simon.kern@online.de> skjerns <14980558+skjerns@users.noreply.github.com>

doc/changes/names.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
.. _Romain Derollepot: https://github.com/rderollepot
257257
.. _Romain Trachel: https://fr.linkedin.com/in/trachelr
258258
.. _Roman Goj: https://romanmne.blogspot.co.uk
259-
.. _Ross Maddox: https://www.urmc.rochester.edu/labs/maddox-lab.aspx
259+
.. _Ross Maddox: https://medicine.umich.edu/dept/khri/ross-maddox-phd
260260
.. _Rotem Falach: https://github.com/Falach
261261
.. _Roy Eric Wieske: https://github.com/Randomidous
262262
.. _Sammi Chekroud: https://github.com/schekroud

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
644644
linkcheck_ignore = [ # will be compiled to regex
645645
# 403 Client Error: Forbidden
646646
"https://doi.org/10.1002/", # onlinelibrary.wiley.com/doi/10.1002/hbm
647+
"https://doi.org/10.1016/", # neuroimage
647648
"https://doi.org/10.1021/", # pubs.acs.org/doi/abs
648649
"https://doi.org/10.1073/", # pnas.org
649650
"https://doi.org/10.1093/", # academic.oup.com/sleep/
@@ -667,10 +668,11 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
667668
r"https://scholar.google.com/scholar\?cites=12188330066413208874&as_ylo=2014",
668669
r"https://scholar.google.com/scholar\?cites=1521584321377182930&as_ylo=2013",
669670
"https://www.research.chop.edu/imaging",
670-
"http://prdownloads.sourceforge.net/optipng/optipng-0.7.8-win64.zip?download",
671+
"http://prdownloads.sourceforge.net/optipng",
671672
"https://sourceforge.net/projects/aespa/files/",
672673
"https://sourceforge.net/projects/ezwinports/files/",
673674
"https://www.mathworks.com/products/compiler/matlab-runtime.html",
675+
"https://medicine.umich.edu/dept/khri/ross-maddox-phd",
674676
# 500 server error
675677
"https://openwetware.org/wiki/Beauchamp:FreeSurfer",
676678
# 503 Server error
@@ -694,6 +696,8 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
694696
"http://ilabs.washington.edu",
695697
"https://psychophysiology.cpmc.columbia.edu",
696698
"https://erc.easme-web.eu",
699+
# Not rendered by linkcheck builder
700+
r"ides\.html",
697701
]
698702
linkcheck_anchors = False # saves a bit of time
699703
linkcheck_timeout = 15 # some can be quite slow

doc/sphinxext/credit_tools.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@
3939

4040
# Allowed singletons
4141
single_names = "btkcodedev buildqa sviter Akshay".split()
42+
# Surnames where we have more than one distinct contributor:
43+
name_counts = dict(
44+
Bailey=2,
45+
Das=2,
46+
Drew=2,
47+
Li=2,
48+
Peterson=2,
49+
Wong=2,
50+
Zhang=2,
51+
)
4252
# Exceptions, e.g., abbrevitaions in first/last name or all-caps
4353
exceptions = [
4454
"T. Wang",
@@ -217,16 +227,6 @@ def generate_credit_rst(app=None, *, verbose=False):
217227
)
218228

219229
# Check for duplicate names based on last name, and also singleton names.
220-
# Below are surnames where we have more than one distinct contributor:
221-
name_counts = dict(
222-
Das=2,
223-
Drew=2,
224-
Li=2,
225-
Peterson=2,
226-
Wong=2,
227-
Zhang=2,
228-
)
229-
# Below are allowed singleton names
230230
last_map = defaultdict(lambda: set())
231231
bad_names = set()
232232
for these_stats in stats.values():
@@ -245,10 +245,11 @@ def generate_credit_rst(app=None, *, verbose=False):
245245
if len(names) > name_counts.get(last, 1):
246246
bad_names.append(f"Duplicates: {sorted(names)}")
247247
if bad_names:
248-
raise RuntimeError(
249-
"Unexpected possible duplicates or bad names found:\n"
250-
+ "\n".join(bad_names)
248+
what = (
249+
"Unexpected possible duplicates or bad names found, "
250+
f"consider modifying {'/'.join(Path(__file__).parts[-3:])}:\n"
251251
)
252+
raise RuntimeError(what + "\n".join(bad_names))
252253

253254
unknown_emails = set(
254255
email
@@ -258,9 +259,8 @@ def generate_credit_rst(app=None, *, verbose=False):
258259
and "dependabot[bot]" not in email
259260
and "github-actions[bot]" not in email
260261
)
261-
assert len(unknown_emails) == 0, "Unknown emails\n" + "\n".join(
262-
sorted(unknown_emails)
263-
)
262+
what = "Unknown emails, consider adding to .mailmap:\n"
263+
assert len(unknown_emails) == 0, what + "\n".join(sorted(unknown_emails))
264264

265265
logger.info("Biggest included commits/PRs:")
266266
commits = dict(

doc/sphinxext/prs/12071.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"merge_commit_sha": "aca49655b10fc17679142e07c5d46659be1099da",
3+
"authors": [
4+
{
5+
"n": "Marijn van Vliet",
6+
"e": "w.m.vanvliet@gmail.com"
7+
},
8+
{
9+
"n": "pre-commit-ci[bot]",
10+
"e": "66853113+pre-commit-ci[bot]@users.noreply.github.com"
11+
},
12+
{
13+
"n": "Daniel McCloy",
14+
"e": "dan@mccloy.info"
15+
}
16+
],
17+
"changes": {
18+
"doc/changes/devel/12071.newfeature.rst": {
19+
"a": 1,
20+
"d": 0
21+
},
22+
"mne/epochs.py": {
23+
"a": 2,
24+
"d": 0
25+
},
26+
"mne/evoked.py": {
27+
"a": 2,
28+
"d": 0
29+
},
30+
"mne/viz/_figure.py": {
31+
"a": 3,
32+
"d": 3
33+
},
34+
"mne/viz/_mpl_figure.py": {
35+
"a": 1,
36+
"d": 1
37+
},
38+
"mne/viz/evoked.py": {
39+
"a": 12,
40+
"d": 1
41+
},
42+
"mne/viz/tests/test_raw.py": {
43+
"a": 14,
44+
"d": 25
45+
},
46+
"mne/viz/tests/test_topo.py": {
47+
"a": 35,
48+
"d": 1
49+
},
50+
"mne/viz/tests/test_utils.py": {
51+
"a": 69,
52+
"d": 0
53+
},
54+
"mne/viz/topo.py": {
55+
"a": 81,
56+
"d": 15
57+
},
58+
"mne/viz/ui_events.py": {
59+
"a": 20,
60+
"d": 0
61+
},
62+
"mne/viz/utils.py": {
63+
"a": 108,
64+
"d": 63
65+
}
66+
}
67+
}

doc/sphinxext/prs/12656.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"merge_commit_sha": "3c6a054093d305a98757a97398e5e34988a3aced",
3+
"authors": [
4+
{
5+
"n": "Qian Chu",
6+
"e": null
7+
}
8+
],
9+
"changes": {
10+
"doc/changes/devel/12656.bugfix.rst": {
11+
"a": 1,
12+
"d": 0
13+
},
14+
"mne/export/_brainvision.py": {
15+
"a": 7,
16+
"d": 0
17+
},
18+
"mne/export/_edf.py": {
19+
"a": 4,
20+
"d": 1
21+
},
22+
"mne/export/_eeglab.py": {
23+
"a": 11,
24+
"d": 5
25+
},
26+
"mne/export/_export.py": {
27+
"a": 7,
28+
"d": 1
29+
},
30+
"mne/export/tests/test_export.py": {
31+
"a": 82,
32+
"d": 7
33+
}
34+
}
35+
}

doc/sphinxext/prs/12828.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"merge_commit_sha": "176f64ff061136cf5628d76535a8d7e2e164d399",
3+
"authors": [
4+
{
5+
"n": "Shristi Baral",
6+
"e": null
7+
},
8+
{
9+
"n": "shristi",
10+
"e": "shristi.baral@aalto.fi"
11+
},
12+
{
13+
"n": "Eric Larson",
14+
"e": "larson.eric.d@gmail.com"
15+
},
16+
{
17+
"n": "Daniel McCloy",
18+
"e": "dan@mccloy.info"
19+
}
20+
],
21+
"changes": {
22+
"doc/changes/devel/12828.bugfix.rst": {
23+
"a": 1,
24+
"d": 0
25+
},
26+
"doc/changes/names.inc": {
27+
"a": 1,
28+
"d": 0
29+
},
30+
"mne/source_estimate.py": {
31+
"a": 7,
32+
"d": 0
33+
},
34+
"mne/utils/docs.py": {
35+
"a": 6,
36+
"d": 0
37+
},
38+
"mne/viz/_3d.py": {
39+
"a": 13,
40+
"d": 3
41+
}
42+
}
43+
}

doc/sphinxext/prs/12910.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"merge_commit_sha": "1d2635f84a55785c3531cfe4027eda3820a7fb31",
3+
"authors": [
4+
{
5+
"n": "Thomas S. Binns",
6+
"e": "t.s.binns@outlook.com"
7+
},
8+
{
9+
"n": "Daniel McCloy",
10+
"e": "dan@mccloy.info"
11+
},
12+
{
13+
"n": "Eric Larson",
14+
"e": "larson.eric.d@gmail.com"
15+
}
16+
],
17+
"changes": {
18+
"doc/changes/devel/12910.newfeature.rst": {
19+
"a": 1,
20+
"d": 0
21+
},
22+
"mne/time_frequency/multitaper.py": {
23+
"a": 10,
24+
"d": 0
25+
},
26+
"mne/time_frequency/tests/test_tfr.py": {
27+
"a": 195,
28+
"d": 26
29+
},
30+
"mne/time_frequency/tfr.py": {
31+
"a": 249,
32+
"d": 113
33+
},
34+
"mne/utils/docs.py": {
35+
"a": 12,
36+
"d": 0
37+
},
38+
"mne/utils/numerics.py": {
39+
"a": 3,
40+
"d": 0
41+
},
42+
"mne/viz/tests/test_topomap.py": {
43+
"a": 24,
44+
"d": 1
45+
},
46+
"mne/viz/topomap.py": {
47+
"a": 13,
48+
"d": 1
49+
}
50+
}
51+
}

0 commit comments

Comments
 (0)