Skip to content

Commit f4f39d2

Browse files
committed
Fix ACE tests'
1 parent f3079d4 commit f4f39d2

6 files changed

Lines changed: 2968 additions & 13 deletions

File tree

ace/ingest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def add_articles(db, files, commit=True, table_dir=None, limit=None,
156156

157157
# Add successfully parsed articles to database
158158
for i, (f, article) in enumerate(parsed_articles):
159-
if article is None:
159+
if article in [None, False]:
160160
missing_sources.append(f)
161161
continue
162162

ace/sources/AmPsych.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "AmPsych",
33
"identifiers": [
4-
"psychiatryonline\\.org",
5-
"American Psychiatric Publishing"
4+
"<meta name=\"dc.Publisher\" content=\" American Psychiatric Publishing"
65
],
76
"entities": null,
87
"delay": 0

ace/sources/NationalAcademyOfSciences.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"name": "National Academy of Sciences",
33
"identifiers": [
4-
"pnas.org",
5-
"Proceedings of the National Academy of Sciences",
6-
"National Academy of Sciences"
4+
"<meta name=\"citation_journal_title\" content=\"Proceedings of the National Academy of Sciences\">"
75
],
86
"entities": {
97
},

ace/sources/Springer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"name": "SpringerNature",
2+
"name": "Springer",
33
"identifiers": [
44
"<meta content=\"Springer\" name=\"dc.publisher\"/>",
55
"<meta property=\"og:site_name\" content=\"SpringerLink\"",
66
"<meta property=\"og:site_name\" content=\"Nature\"/>",
7-
"<meta content=\"Nature Publishing Group\" name=\"dc.publisher\"/>",
8-
"nature\\.com/articles/",
7+
"<meta content=\"Nature Publishing Group\" name=\"dc.publisher\">",
8+
"<meta name=\"citation_publisher\" content=\"Nature Publishing Group\">",
9+
"<meta name=\"dc.publisher\" content=\"Nature Publishing Group\">",
910
"<meta content=\"BioMed Central\" name=\"dc.publisher\"/>",
10-
"<meta property=\"og:site_name\" content=\"BioMed Central\">",
11-
"biomedcentral\\.com/articles/"
11+
"<meta property=\"og:site_name\" content=\"BioMed Central\">"
12+
1213
],
1314
"entities": {
14-
1515
}
1616
}

0 commit comments

Comments
 (0)