Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] Add affiliations #3956

Merged
merged 15 commits into from Sep 12, 2023
Merged

[MAINT] Add affiliations #3956

merged 15 commits into from Sep 12, 2023

Conversation

Remi-Gau
Copy link
Collaborator

@Remi-Gau Remi-Gau commented Sep 8, 2023

Changes proposed in this pull request:

  • get contributors infor from google spreadsheet set during OHBM hackathon
  • get extra info from ORCID or github
  • add affiliation to authors.rst

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

👋 @Remi-Gau Thanks for creating a PR!

Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft.

Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.

  • PR has an interpretable title.
  • PR links to Github issue with mention Closes #XXXX (see our documentation on PR structure)
  • Code is PEP8-compliant (see our documentation on coding style)
  • Changelog or what's new entry in doc/changes/latest.rst (see our documentation on PR structure)

For new features:

  • There is at least one unit test per new function / class (see our documentation on testing)
  • The new feature is demoed in at least one relevant example.

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

We will review it as quick as possible, feel free to ping us with questions if needed.

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #3956 (ddfa0d9) into main (45065b5) will not change coverage.
Report is 5 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3956   +/-   ##
=======================================
  Coverage   91.79%   91.79%           
=======================================
  Files         134      134           
  Lines       15772    15772           
  Branches     3284     3284           
=======================================
  Hits        14478    14478           
  Misses        751      751           
  Partials      543      543           
Flag Coverage Δ
macos-latest_3.10 91.70% <ø> (ø)
macos-latest_3.11 91.70% <ø> (ø)
macos-latest_3.8 91.67% <ø> (ø)
macos-latest_3.9 91.67% <ø> (ø)
ubuntu-latest_3.10 91.70% <ø> (ø)
ubuntu-latest_3.11 91.70% <ø> (ø)
ubuntu-latest_3.8 91.67% <ø> (ø)
ubuntu-latest_3.9 91.67% <ø> (ø)
windows-latest_3.10 91.64% <ø> (ø)
windows-latest_3.11 91.64% <ø> (ø)
windows-latest_3.8 91.61% <ø> (ø)
windows-latest_3.9 91.61% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Remi-Gau Remi-Gau marked this pull request as ready for review September 8, 2023 19:45
AUTHORS.rst Outdated
Comment on lines 51 to 59
* `Ahmad Chamma`_: INRIA, Saclay, France
* `Aina Frau-Pascual`_
* `Alex Rothberg`_
* `Alexandre Abadie`_
* `Alex Rothberg`_: Free Agency, New York, USA
* `Alexandre Abadie`_: Inria, Paris
* `Alexandre Abraham`_
* `Alexandre Gramfort`_
* `Alexandre Gramfort`_: Meta, France
* `Alexandre Savio`_
* `Alexis Thual`_
* `Alisha Kodibagkar`_
* `Alexis Thual`_: INRIA, Saclay, France
* `Alisha Kodibagkar`_: MIT McGovern Institute, Cambridge, Massachusetts, United States
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could turn this into a table if we think it would look better.

@Remi-Gau
Copy link
Collaborator Author

Remi-Gau commented Sep 8, 2023

If anyone feels like I can try to add map of the location of our contributors in the authors.rst file.

Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for doing that !

AUTHORS.rst Outdated Show resolved Hide resolved
AUTHORS.rst Outdated Show resolved Hide resolved
AUTHORS.rst Outdated Show resolved Hide resolved
AUTHORS.rst Outdated Show resolved Hide resolved
AUTHORS.rst Outdated Show resolved Hide resolved
CITATION.cff Outdated Show resolved Hide resolved
CITATION.cff Outdated Show resolved Hide resolved
CITATION.cff Outdated Show resolved Hide resolved
CITATION.cff Outdated Show resolved Hide resolved
CITATION.cff Outdated Show resolved Hide resolved
Remi-Gau and others added 4 commits September 10, 2023 23:48
Co-authored-by: bthirion <bertrand.thirion@inria.fr>
Co-authored-by: bthirion <bertrand.thirion@inria.fr>
@Remi-Gau
Copy link
Collaborator Author

Will try to tackle the people with no affiliation or with just a country as affiliation but I think we should not aim to be 100% completionist on this one.

@Remi-Gau
Copy link
Collaborator Author

Will most likely move this to another PR but here is a little script that should help us consolidate the ORCID of some of our contributors

"""list authors with no orcid id

ping the ORCID API to see what match we get
and only print when there are less than 5 results 
"""
import pandas as pd
import requests
from rich import print

from citation_cff_maint import read_citation_cff

citation = read_citation_cff()

author_list = []
orcid_list = []

for author in citation["authors"]:
    if "orcid" not in author:
        print(f"{author['given-names']} {author['family-names']}")

        url = f"https://pub.orcid.org/v3.0/search/?q=family-name:{author['family-names']}+AND+given-names:{author['given-names']}"

        response = requests.get(
            url,
            headers={
                "Accept": "application/json",
            },
        )

        if response.status_code == 200:
            resp = response.json()
            if resp["num-found"] > 0 and resp["num-found"] < 6:
                author_list.append(
                    f"{author['given-names']} {author['family-names']}"
                )
                orcid = [x["orcid-identifier"]["uri"] for x in resp["result"]]
                orcid_list.append(", ".join(orcid))

df = pd.DataFrame({"author": author_list, "orcid": orcid_list})
df.to_csv("orcid.tsv", index=False, sep="\t")

author orcid
Aina Frau-Pascual https://orcid.org/0000-0001-6311-8426
Alexandre Abraham https://orcid.org/0000-0003-3693-0560
Alexandre Savio https://orcid.org/0000-0002-6608-6885, https://orcid.org/0000-0002-6067-6606
Anne-Sophie Kieslinger https://orcid.org/0000-0001-9240-4077
Arthur Mensch https://orcid.org/0000-0001-7866-0461
Aswin Vijayan https://orcid.org/0000-0002-0564-0774, https://orcid.org/0000-0002-5039-957X, https://orcid.org/0000-0002-1905-4194
Audrey Duran https://orcid.org/0000-0002-1037-5098
Caglar Cakan https://orcid.org/0000-0002-1902-5393
Christian Gerloff https://orcid.org/0000-0003-2718-2089, https://orcid.org/0000-0002-6484-8882
Connor Lane https://orcid.org/0009-0009-0164-5672, https://orcid.org/0000-0002-6456-6308, https://orcid.org/0009-0003-6723-8013, https://orcid.org/0000-0002-5527-4768
Céline Delettre https://orcid.org/0000-0001-6568-0295
Danilo Bzdok https://orcid.org/0000-0003-3466-6620
Derek Pisner https://orcid.org/0000-0002-1228-0201
Elvis Dohmatob https://orcid.org/0000-0003-1421-6972
Evan Edmond https://orcid.org/0000-0003-4641-3583
Fabian Pedregosa https://orcid.org/0000-0003-4025-3953
François Paugam https://orcid.org/0000-0002-8161-7699
Ian Abenes https://orcid.org/0000-0002-7625-1557
Jake Vogel https://orcid.org/0000-0002-9936-6832
Javier Rasero https://orcid.org/0000-0003-1661-2856
Jean Kossaifi https://orcid.org/0000-0002-4445-3429
Jean-Rémi King https://orcid.org/0000-0002-2121-170X, https://orcid.org/0000-0003-0061-0872, https://orcid.org/0000-0001-9572-8210, https://orcid.org/0000-0001-5759-7985
Jelle Roelof Dalenberg https://orcid.org/0000-0001-8580-5358
Jeremy Lefort-Besnard https://orcid.org/0000-0002-8033-4953, https://orcid.org/0000-0001-7127-7558
Johannes Wiesner https://orcid.org/0000-0001-7040-3516
Jona Sassenhagen https://orcid.org/0000-0002-9935-8621
Joshua Teves https://orcid.org/0000-0002-7767-0067
Julio A Peraza https://orcid.org/0000-0003-3816-5903
Koen Helwegen https://orcid.org/0000-0002-1247-6626
Konrad Wagstyl https://orcid.org/0000-0003-3439-5808
Konstantin Shmelkov https://orcid.org/0000-0002-1555-1126
Leonard Sasse https://orcid.org/0000-0002-2400-3404
Loic Tetrel https://orcid.org/0000-0002-1501-331X
Martin Wegrzyn https://orcid.org/0000-0001-8025-4075
Matthias Ekman https://orcid.org/0000-0003-1254-1392
Mehdi Rahim https://orcid.org/0000-0002-9570-4144
Michael Eickenberg https://orcid.org/0000-0003-0656-4803
Michael Notter https://orcid.org/0000-0002-5866-047X
Michael Waskom https://orcid.org/0000-0002-9817-6869
Moritz Boos https://orcid.org/0000-0002-1219-4901
Natasha Clarke https://orcid.org/0000-0002-6547-8609, https://orcid.org/0000-0003-2375-4510, https://orcid.org/0000-0003-2455-3614, https://orcid.org/0000-0002-4508-6851
Neelay Shah https://orcid.org/0000-0001-7950-1956, https://orcid.org/0000-0003-3667-4114
Nicolas Gensollen https://orcid.org/0000-0001-7199-9753
Oliver Warrington https://orcid.org/0000-0002-3592-7071
Patrick Sadil https://orcid.org/0000-0003-4141-1343
Paul Bogdan https://orcid.org/0000-0002-4362-6084, https://orcid.org/0000-0003-2118-0816
Philippe Gervais https://orcid.org/0000-0002-2656-3931, https://orcid.org/0000-0003-2172-879X, https://orcid.org/0000-0003-1622-6066
Pierre Glaser https://orcid.org/0000-0003-4146-973X
Rahul Brito https://orcid.org/0000-0003-0343-0455
Raphael Meudec https://orcid.org/0000-0001-9970-5745
Robert Luke https://orcid.org/0000-0002-4930-8351
Roberto Guidotti https://orcid.org/0000-0001-6487-3968, https://orcid.org/0000-0002-0807-6005
Ronald Phlypo https://orcid.org/0000-0003-4310-7994
Ryan Hammonds https://orcid.org/0000-0002-5032-3241
Sachin Patalasingh https://orcid.org/0000-0001-5627-2249
Sage Hahn https://orcid.org/0000-0003-3560-2952
Simon Steinkamp https://orcid.org/0000-0002-6437-0700
Vasco Diogo https://orcid.org/0000-0002-7965-9013, https://orcid.org/0000-0001-5732-9390, https://orcid.org/0000-0003-1793-4443
Yasmin Mzayek https://orcid.org/0000-0003-2904-2530

@Remi-Gau
Copy link
Collaborator Author

Will merge this one and move the ORCID update to another issue.

@Remi-Gau Remi-Gau merged commit 18fae8e into nilearn:main Sep 12, 2023
29 checks passed
@Remi-Gau Remi-Gau deleted the affiliations branch September 12, 2023 12:01
@Remi-Gau
Copy link
Collaborator Author

For the record.

Note that Alexis has multiple affiliations (INSERM, College de France)

Citation.cff do not yet support multiple affiliations but this is the discussion thread about it.

citation-file-format/citation-file-format#268

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.

Updating contributors affiliations
2 participants