Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Hernandez committed Jul 26, 2015
1 parent f8056c9 commit 48edc50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions examples/Example1.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/ipymol/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def to_png(self, height=0, width=0, dpi=300, delay=0.0):
self.do('png %s, %d, %d, %d' % (fname, height, width, dpi))
# retry 10 times and wait a short period everytime so that PyMOL can
# finish
im = None
img = None
for i in xrange(10):
time.sleep(0.1)
try:
Expand Down Expand Up @@ -109,5 +109,5 @@ def show(self):
ax.imshow(np.asarray(self.to_png()))
return fig

# Create a default instance for convinience
# Create a default instance for convenience
viewer = MolViewer()

0 comments on commit 48edc50

Please sign in to comment.