Skip to content

DOC: convert references in plot_parcellation to use footcite - #9032

Merged
larsoner merged 4 commits into
mne-tools:mainfrom
NicolasGensollen:doc-bibtex-plot_parcellation
Mar 15, 2021
Merged

larsoner merged 4 commits into
mne-tools:mainfrom
NicolasGensollen:doc-bibtex-plot_parcellation

Conversation

@NicolasGensollen

Copy link
Copy Markdown
Contributor

Fixes #8911

@agramfort

Copy link
Copy Markdown
Member

@NicolasGensollen you have CI issues. I fear you need to update the .bib file too.

@NicolasGensollen

Copy link
Copy Markdown
Contributor Author

@NicolasGensollen you have CI issues. I fear you need to update the .bib file too.

@agramfort I'm not sure what's causing them yet. I don't think I have to update the .bib file since the two refs of plot_parcellation are already there:

@article{GlasserEtAl2016,
author = {Glasser, Matthew F. and Coalson, Timothy S. and Robinson, Emma C. and Hacker, Carl D. and Harwell, John and Yacoub, Essa and Ugurbil, Kamil and Andersson, Jesper and Beckmann, Christian F. and Jenkinson, Mark and Smith, Stephen M. and Van Essen, David C.},
doi = {10.1038/nature18933},
journal = {Nature},
number = {7615},
pages = {171-178},
title = {A multi-modal parcellation of human cerebral cortex},
volume = {536},
year = {2016}
}

and:

@article{KhanEtAl2018,
author = {Khan, Sheraz and Hashmi, Javeria A. and Mamashli, Fahimeh and Michmizos, Konstantinos and Kitzbichler, Manfred G. and Bharadwaj, Hari and Bekhti, Yousra and Ganesan, Santosh and Garel, Keri-Lee A. and {Whitfield-Gabrieli}, Susan and Gollub, Randy L. and Kong, Jian and Vaina, Lucia M. and Rana, Kunjan D. and Stufflebeam, Steven M. and Hämäläinen, Matti S. and Kenet, Tal},
doi = {10.1016/j.neuroimage.2018.02.018},
journal = {NeuroImage},
pages = {57-68},
title = {Maturation Trajectories of Cortical Resting-State Networks Depend on the Mediating Frequency Band},
volume = {174},
year = {2018}
}

@agramfort

agramfort commented Mar 12, 2021 via email

Copy link
Copy Markdown
Member

@drammock

Copy link
Copy Markdown
Member

@NicolasGensollen thanks for fixing this! FYI, we are saving a lot of "easy" issues like this for our New Developer Code Sprint next week. There are still plenty to go around so no problem with us merging this one, but in case you were planning to tackle several more like this in the coming days, please wait until after the code sprint.

@NicolasGensollen

Copy link
Copy Markdown
Contributor Author

FYI, we are saving a lot of "easy" issues like this for our New Developer Code Sprint next week.

@drammock thanks for the heads up. 👍
This was just the occasion to start playing with MNE.
Feel free to close if you want to save it for the sprint.

@drammock

Copy link
Copy Markdown
Member

No sense closing a perfectly good pull request! We have plenty of other easy issues for them to tackle. Once we get our CI build problem sorted out I'll merge this.

@drammock

Copy link
Copy Markdown
Member

CI error is this (lines 1017-1032 here):

  gcc: tvtk/src/array_ext.c
  In file included from /home/circleci/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944,
                   from /home/circleci/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/circleci/.local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from tvtk/src/array_ext.c:223:
  /home/circleci/.local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   #warning "Using deprecated NumPy API, disable it with " \
    ^~~~~~~
  gcc -pthread -shared build/temp.linux-x86_64-3.8/tvtk/src/array_ext.o -L/usr/local/lib -o build/lib.linux-x86_64-3.8/tvtk/array_ext.cpython-38-x86_64-linux-gnu.so
  running gen_docs
  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  
  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
  
  Fatal Python error: Aborted

The "could not load plugin xcb" feels like a familiar error... some searching suggests that reinstalling libxcb (or libxcb-xinerama0) fixes this for some people, but there seem to be a variety of causes and solutions. may need to re-run on Circle with export QT_DEBUG_PLUGINS=1 to solve?

@larsoner

Copy link
Copy Markdown
Member

That should have been fixed by #9024 so I pushed a merge with upstream/main to see if it fixes things

@larsoner
larsoner merged commit 623553f into mne-tools:main Mar 15, 2021
@larsoner

Copy link
Copy Markdown
Member

Thanks @NicolasGensollen !

@NicolasGensollen
NicolasGensollen deleted the doc-bibtex-plot_parcellation branch March 15, 2021 11:18
larsoner added a commit to vpeterson/mne-python that referenced this pull request Mar 15, 2021
* upstream/main: (135 commits)
  DOC: use bibtex in plot_source_power_spectrum_opm.py (mne-tools#8906) (mne-tools#9050)
  DOC: use bibtex in plot_sleep (mne-tools#9044)
  FIX: fix sideways helmet plot (mne-tools#9059)
  FIX: bibtex mne-tools#8933 (mne-tools#9047)
  Fix bibtex citation issue mne-tools#8929. (mne-tools#9051)
  bibtex fix plot_time_frequency_global_field_power (mne-tools#9052)
  Fixed bibtex references in plot_background_statistics (mne-tools#9046)
  Bibtex raw py (mne-tools#9048)
  DOC update footcite maxwell.py (mne-tools#9043)
  update footcite [skip github] [skip azp] (mne-tools#9054)
  Adding bibtex in plot_otp (mne-tools#9049)
  fix bibtex plot_evoked_whitening (mne-tools#9042)
  MAINT: Link earlier [skip github] [skip azp] (mne-tools#9041)
  DOC: convert references in plot_parcellation to use footcite (mne-tools#9032)
  MAINT: Fix circle (mne-tools#9039)
  ENH: Allow adding custom JavaScript to Report (mne-tools#9037)
  MRG, DOC: Bump theme version (mne-tools#9036)
  MAINT: Simplify expression (followup to mne-tools#9015) (mne-tools#9035)
  MRG, MAINT: Cleaner split, fewer skips in _brain tests (mne-tools#9029)
  MRG, ENH: viz.plot_drop_log() gains special-handling for subject=None (mne-tools#9015)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use bibtex in plot_parcellation.py

4 participants