From caee625afd60346c90031885214570a7e02ad2bc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 19 Feb 2018 23:15:24 +0200 Subject: [PATCH] Update notes --- content/post/2018-02.md | 32 +++++++++++++++++++++++++++++++ docs/2018-02/index.html | 42 ++++++++++++++++++++++++++++++++++++++--- docs/robots.txt | 2 +- docs/sitemap.xml | 20 ++++++++++---------- 4 files changed, 82 insertions(+), 14 deletions(-) diff --git a/content/post/2018-02.md b/content/post/2018-02.md index f236a036b..93d6dae13 100644 --- a/content/post/2018-02.md +++ b/content/post/2018-02.md @@ -672,3 +672,35 @@ $ cat output.txt Ali Ramadhan: 0000-0001-5019-1368 Ahmad Maryudi: 0000-0001-5051-7217 ``` + +- I was running this on the new list of 1571 and found an error: + +``` +Looking up the name associated with ORCID iD: 0000-0001-9634-1958 +Traceback (most recent call last): + File "./resolve-orcids.py", line 111, in + read_identifiers_from_file() + File "./resolve-orcids.py", line 37, in read_identifiers_from_file + resolve_orcid_identifiers(orcids) + File "./resolve-orcids.py", line 65, in resolve_orcid_identifiers + family_name = data['name']['family-name']['value'] +TypeError: 'NoneType' object is not subscriptable +``` + +- According to ORCID that identifier's family-name is null so that sucks +- I fixed the script so that it checks if the family name is null +- Now another: + +``` +Looking up the name associated with ORCID iD: 0000-0002-1300-3636 +Traceback (most recent call last): + File "./resolve-orcids.py", line 117, in + read_identifiers_from_file() + File "./resolve-orcids.py", line 37, in read_identifiers_from_file + resolve_orcid_identifiers(orcids) + File "./resolve-orcids.py", line 65, in resolve_orcid_identifiers + if data['name']['given-names']: +TypeError: 'NoneType' object is not subscriptable +``` + +- According to ORCID that identifier's entire name block is null! diff --git a/docs/2018-02/index.html b/docs/2018-02/index.html index 4569bc2aa..4a13aec0a 100644 --- a/docs/2018-02/index.html +++ b/docs/2018-02/index.html @@ -23,7 +23,7 @@ I copied the logic in the jmx_tomcat_dbpools provided by Ubuntu’s munin-pl - + @@ -57,9 +57,9 @@ I copied the logic in the jmx_tomcat_dbpools provided by Ubuntu’s munin-pl "@type": "BlogPosting", "headline": "February, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-02/", - "wordCount": "4248", + "wordCount": "4384", "datePublished": "2018-02-01T16:28:54+02:00", - "dateModified": "2018-02-18T17:41:05+02:00", + "dateModified": "2018-02-19T18:40:43+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -880,6 +880,42 @@ Ali Ramadhan: 0000-0001-5019-1368 Ahmad Maryudi: 0000-0001-5051-7217 +
    +
  • I was running this on the new list of 1571 and found an error:
  • +
+ +
Looking up the name associated with ORCID iD: 0000-0001-9634-1958
+Traceback (most recent call last):
+  File "./resolve-orcids.py", line 111, in <module>
+    read_identifiers_from_file()
+  File "./resolve-orcids.py", line 37, in read_identifiers_from_file
+    resolve_orcid_identifiers(orcids)
+  File "./resolve-orcids.py", line 65, in resolve_orcid_identifiers
+    family_name = data['name']['family-name']['value']
+TypeError: 'NoneType' object is not subscriptable
+
+ +
    +
  • According to ORCID that identifier’s family-name is null so that sucks
  • +
  • I fixed the script so that it checks if the family name is null
  • +
  • Now another:
  • +
+ +
Looking up the name associated with ORCID iD: 0000-0002-1300-3636
+Traceback (most recent call last):
+  File "./resolve-orcids.py", line 117, in <module>
+    read_identifiers_from_file()
+  File "./resolve-orcids.py", line 37, in read_identifiers_from_file
+    resolve_orcid_identifiers(orcids)
+  File "./resolve-orcids.py", line 65, in resolve_orcid_identifiers
+    if data['name']['given-names']:
+TypeError: 'NoneType' object is not subscriptable
+
+ +
    +
  • According to ORCID that identifier’s entire name block is null!
  • +
+ diff --git a/docs/robots.txt b/docs/robots.txt index 12f3bc2f9..86c3f15b8 100644 --- a/docs/robots.txt +++ b/docs/robots.txt @@ -32,7 +32,7 @@ Disallow: /cgspace-notes/2015-12/ Disallow: /cgspace-notes/2015-11/ Disallow: /cgspace-notes/ Disallow: /cgspace-notes/categories/ -Disallow: /cgspace-notes/tags/notes/ Disallow: /cgspace-notes/categories/notes/ +Disallow: /cgspace-notes/tags/notes/ Disallow: /cgspace-notes/post/ Disallow: /cgspace-notes/tags/ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 6c4c6b089..47751c148 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-02/ - 2018-02-18T17:41:05+02:00 + 2018-02-19T18:40:43+02:00 @@ -149,7 +149,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-02-18T17:41:05+02:00 + 2018-02-19T18:40:43+02:00 0 @@ -158,27 +158,27 @@ 0 - - https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-02-18T17:41:05+02:00 - 0 - - https://alanorth.github.io/cgspace-notes/categories/notes/ 2017-09-28T12:00:49+03:00 0 + + https://alanorth.github.io/cgspace-notes/tags/notes/ + 2018-02-19T18:40:43+02:00 + 0 + + https://alanorth.github.io/cgspace-notes/post/ - 2018-02-18T17:41:05+02:00 + 2018-02-19T18:40:43+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-02-18T17:41:05+02:00 + 2018-02-19T18:40:43+02:00 0