You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,17 +194,16 @@ To make data access more uniform, Sidewall also replaces the field `current_orga
194
194
>>>import sidewall
195
195
>>>from sidewall import dimensions, Researcher
196
196
>>> dimensions.login()
197
-
>>>results= dimensions.query('search publications in title_only for "SBML" where year=2003 return publications')
198
-
>>>pub1=next(results)
199
-
>>> author1 =pub1.authors[0]
197
+
>>>pubs= dimensions.query('search publications in title_only for "SBML" where year=2003 return publications')
198
+
>>>pub=next(pubs)
199
+
>>> author1 =pub.authors[0]
200
200
>>> author1
201
-
<Author ur.0665132124.52: 'M. Hucka'>
201
+
<Author ur.0665132124.52>
202
202
>>> author1.affiliations
203
203
[]
204
204
>>> researcher1 = Researcher(author1)
205
205
>>> researcher1.affiliations
206
-
[<Organization grid.214458.e: 'University of Michigan'>, <Organization grid.20861.3d: 'California Institute of Technology'>, <Organization grid.10392.39: 'University of Tübingen'>]
Finally, note that the field `role` is present for `Researcher` objects listed only in the context of `Grant` results. Its value is not filled in other contexts.
0 commit comments