Skip to content

Commit

Permalink
download nexsons from api instead of devapi
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwb committed Feb 11, 2015
1 parent daf147e commit ad7d690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion general_tm_utils.py
Expand Up @@ -12,7 +12,8 @@
def get_study_opentreeapi(studyid, studyloc):
#call = "http://ot10.opentreeoflife.org/api/v1/study/"+studyid
#call = "http://api.opentreeoflife.org/phylesystem/v1/study/" + studyid
call = "http://devapi.opentreeoflife.org/v2/study/"+studyid
#call = "http://devapi.opentreeoflife.org/v2/study/"+studyid
call = "http://api.opentreeoflife.org/v2/study/"+studyid
req = urllib2.Request(call)
res = urllib2.urlopen(req)
fl = open(studyloc+"/"+studyid,"w")
Expand Down

1 comment on commit ad7d690

@josephwb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was breaking the asterales example (a relevant tree apparently does not exist in devapi).

Please sign in to comment.