From 7b2f21d14c85a9f9a5c82cb7ea86214189fe0ac5 Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Sat, 16 Mar 2019 11:37:48 -0700 Subject: [PATCH] Update example --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4e7ed21..026c609 100644 --- a/README.md +++ b/README.md @@ -194,17 +194,16 @@ To make data access more uniform, Sidewall also replaces the field `current_orga >>> import sidewall >>> from sidewall import dimensions, Researcher >>> dimensions.login() ->>> results = dimensions.query('search publications in title_only for "SBML" where year=2003 return publications') ->>> pub1 = next(results) ->>> author1 = pub1.authors[0] +>>> pubs = dimensions.query('search publications in title_only for "SBML" where year=2003 return publications') +>>> pub = next(pubs) +>>> author1 = pub.authors[0] >>> author1 - + >>> author1.affiliations [] >>> researcher1 = Researcher(author1) >>> researcher1.affiliations -[, , ] ->>> +[, , ] ``` 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.