-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
davidnmora
authored and
davidnmora
committed
Dec 6, 2017
1 parent
756a850
commit 36e86fa
Showing
10 changed files
with
220 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"2067522": "Carol S. Dweck", "3141129": "Mihaly Csikszentmihalyi", "4426823": "Frederic Luskin", "3990536": "Dacher J Keltner", "6140201": "Emma M Seppala", "3070698": "Daniel T. Gilbert", "1892780": "Barbara L. Fredrickson", "6986158": "Sonja Lyubomirsky", "4858703": "Kristin D. Neff", "4580744": "Robert A. Emmons", "5668084": "Kelly M McGonigal", "24981109": "Daniel J. Siegel", "6262729": "Jon Kabat-Zinn", "6156620": "Jennifer L. Aaker", "4171705": "Corey Lee M. Keyes", "1716527": "Richard J. Davidson", "3084765": "Martin E. P. Seligman", "5720574": "Angela Lee Duckworth", "9031716": "Zindel V. Segal"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import json | ||
import csv | ||
# IMPORT JSON FILE | ||
authorsDict = {} | ||
with open('core-authors-with-s2ids.csv', 'r') as csvfile: | ||
authorReader = csv.reader(csvfile) | ||
for authorS2Pair in authorReader: | ||
name = authorS2Pair[0] | ||
s2Id = int(authorS2Pair[1]) | ||
authorsDict[s2Id] = name | ||
|
||
|
||
with open("core-authors-list.json", "w") as gd: | ||
gd.write(json.dumps(authorsDict)) | ||
gd.close() |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.