From dc7452e58920e9b7c4f954f35dd7ed3e49eb1dc8 Mon Sep 17 00:00:00 2001 From: Nils Homer Date: Wed, 27 Aug 2014 23:43:48 -0400 Subject: [PATCH] getProjectByUser should take no arguments in the 'Browsing' example --- examples/0_Browsing.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/0_Browsing.py b/examples/0_Browsing.py index 71133e6..d90710e 100644 --- a/examples/0_Browsing.py +++ b/examples/0_Browsing.py @@ -50,7 +50,6 @@ else: myAPI = BaseSpaceAPI(profile='DEFAULT') - # First, let's grab the genome with id=4 myGenome = myAPI.getGenomeById('4') print "\nThe Genome is " + str(myGenome) @@ -68,7 +67,7 @@ print "\nThe current user is \n" + str(user) # Now list the projects for this user -myProjects = myAPI.getProjectByUser('current') +myProjects = myAPI.getProjectByUser() print "\nThe projects for this user are \n" + str(myProjects) # We can also achieve this by making a call using the 'user instance' @@ -81,4 +80,4 @@ # In the same manner we can get a list of accessible user runs runs = user.getRuns(myAPI) -print "\nRuns retrieved from user instance \n" + str(runs) \ No newline at end of file +print "\nRuns retrieved from user instance \n" + str(runs)