Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7b2f21d

Browse files
committed
Update example
1 parent c2ad5b8 commit 7b2f21d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,17 +194,16 @@ To make data access more uniform, Sidewall also replaces the field `current_orga
194194
>>> import sidewall
195195
>>> from sidewall import dimensions, Researcher
196196
>>> 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]
200200
>>> author1
201-
<Author ur.0665132124.52: 'M. Hucka'>
201+
<Author ur.0665132124.52>
202202
>>> author1.affiliations
203203
[]
204204
>>> researcher1 = Researcher(author1)
205205
>>> 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'>]
207-
>>>
206+
[<Organization grid.20861.3d>, <Organization grid.10392.39>, <Organization grid.214458.e>]
208207
```
209208

210209
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

Comments
 (0)