Hi all,
Firstly apologises for (what must feel like) spamming the discussion list.
This has taken most of this morning to figure out - I've just been testing some
code I've written and I found it was growing in memory use when it shouldn't
be. This is the problem I found - when you get RDKit to read in a bad/incorrect
SMILES - where it correctly doesn't build a molecule object, it doesn't quite
free up the memory. If you run the following program you can see the memory use
grow:
from rdkit import Chem
dodgy_smiles = "c1ccocc1"
for i in xrange(1000000):
m = Chem.MolFromSmiles(dodgy_smiles)
if(m == None):
print "Bad Smiles"
This is minor bug as hopefully nobody will try to build molecule objects for
lots of bad smiles but I thought it was worth reporting.
Thanks
Jameed
________________________________
This e-mail was sent by GlaxoSmithKline Services Unlimited
(registered in England and Wales No. 1047315), which is a
member of the GlaxoSmithKline group of companies. The
registered address of GlaxoSmithKline Services Unlimited
is 980 Great West Road, Brentford, Middlesex TW8 9GS.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss