patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

Enable skipping of json conversion. #15

Closed ctk3b closed 9 years ago

ctk3b commented 9 years ago

If the molecule is already in the correct json format this removes the need to convert anything under the hood.

This is the small tweak I would need to use this for my other project.

patrickfuller commented 9 years ago

Hm, have you tried calling draw with the format="json" keyword argument? If you do that, there's a short circuit here that just ensures the json is valid without requiring open babel. If that doesn't work, let me know!

ctk3b commented 9 years ago

Hmm I guess I didn't read carefully enough. That should absolutely work. Running into some other issues now but they don't seem to be related so I'll close this for now.