Commit b22ad62e authored by abuddenberg's avatar abuddenberg
Browse files

Fixed example code. .gitignore'd .pyc files for real this time

parent 1eed2e47
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.classpath .classpath
.groovy .groovy
.settings .settings
.pyc *.pyc
bin/* bin/*
src/blah.py src/blah.py
src/Blah.py src/Blah.py
...@@ -5,11 +5,11 @@ base_url = 'http://data.gcis-dev-front.joss.ucar.edu' ...@@ -5,11 +5,11 @@ base_url = 'http://data.gcis-dev-front.joss.ucar.edu'
gcis = GcisClient(base_url, 'andrew.buddenberg@noaa.gov', 'fcee8e3f11f36313e463ece51aab15242f71f3d552d565be') gcis = GcisClient(base_url, 'andrew.buddenberg@noaa.gov', 'fcee8e3f11f36313e463ece51aab15242f71f3d552d565be')
# #Let's pull a list of all figures in Chapter 2 of the NCA3draft # #Let's pull a list of all figures in Chapter 2 of the NCA3draft
# for partial_figure in gcis.get_figure_listing('nca3draft', chapter_id='our-changing-climate'): for partial_figure in gcis.get_figure_listing('nca3draft', chapter_id='our-changing-climate'):
# #The listing doesn't provide all available fields for the figure (Images, for instance). #The listing doesn't provide all available fields for the figure (Images, for instance).
# #There aren't very many figures, so let's go ahead and grab a complete version of each #There aren't very many figures, so let's go ahead and grab a complete version of each
# full_figure = gcis.get_figure('nca3draft', partial_figure.identifier, chapter_id='our-changing-climate') full_figure = gcis.get_figure('nca3draft', partial_figure.identifier, chapter_id='our-changing-climate')
# print full_figure print full_figure
#Let's work with the infamous temperature figure #Let's work with the infamous temperature figure
...@@ -25,3 +25,9 @@ print fig2_6.original ...@@ -25,3 +25,9 @@ print fig2_6.original
for image in fig2_6.images: for image in fig2_6.images:
print image print image
#How about the whole Image?
print gcis.get_image('69da6d93-4426-4061-a2a1-7b3d01f2dc1c').as_json(indent=4)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment