Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed molecule_draw import statements

  • Loading branch information...
commit d6b1b2ba4c44412827486159a21f6874ff645e68 1 parent 4d638dd
Sean Troiano stroiano authored

Showing 2 changed files with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +3 3 rmgpy/measure/network.py
  2. +2 2 rmgpy/rmg/output.py
6 rmgpy/measure/network.py
@@ -1234,7 +1234,7 @@ def __drawText(self, text, ext, padding=0):
1234 1234 surface is dictated by the `ext` parameter.
1235 1235 """
1236 1236
1237   - from rmgpy.molecule_draw import createNewSurface, fontSizeNormal
  1237 + from rmgpy.molecule.molecule_draw import createNewSurface, fontSizeNormal
1238 1238 import cairo
1239 1239
1240 1240 surface0 = createNewSurface(type=ext[1:])
@@ -1261,7 +1261,7 @@ def __drawLabel(self, speciesList, ext, useLabels=False):
1261 1261 will be used.
1262 1262 """
1263 1263
1264   - from rmgpy.molecule_draw import createNewSurface, drawMolecule
  1264 + from rmgpy.molecule.molecule_draw import createNewSurface, drawMolecule
1265 1265 import cairo
1266 1266
1267 1267 # Determine whether or not to use the molecular structures in the
@@ -1310,4 +1310,4 @@ def __drawLabel(self, speciesList, ext, useLabels=False):
1310 1310 top += boundingRects[i][3]
1311 1311
1312 1312 return surfaces, width, height, boundingRects
1313   -
  1313 +
4 rmgpy/rmg/output.py
@@ -324,7 +324,7 @@ def saveDiffHTML(path, commonSpeciesList, speciesList1, speciesList2, commonReac
324 324 from model import PDepReaction
325 325 from rmgpy.kinetics import Arrhenius, MultiKinetics
326 326
327   - from rmgpy.molecule_draw import drawMolecule
  327 + from rmgpy.molecule.molecule_draw import drawMolecule
328 328 try:
329 329 import jinja2
330 330 except ImportError:
@@ -841,4 +841,4 @@ def csssafe(input):
841 841 """)
842 842 f = open(path, 'w')
843 843 f.write(template.render(title=title, commonSpecies=commonSpeciesList, speciesList1=speciesList1, speciesList2 = speciesList2, commonReactions=commonReactions, uniqueReactions1=uniqueReactions1, uniqueReactions2=uniqueReactions2, families1=families1, families2=families2, familyCount1=familyCount1,familyCount2=familyCount2, speciesList=speciesList))
844   - f.close()
  844 + f.close()

0 comments on commit d6b1b2b

Please sign in to comment.
Something went wrong with that request. Please try again.