bkchem-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bkchem-user] Bkchem and Oasa scripting - getting the MolWeight


From: My Th
Subject: Re: [Bkchem-user] Bkchem and Oasa scripting - getting the MolWeight
Date: Tue, 07 Jun 2011 18:04:04 +0300

Hi!

molecule.get_mol_weight() should do the trick, e.g.:
import bkchem.oasa as o
smi = o.smiles.smiles()
smi.read_smiles("CCCC")
smi.get_structure().get_mol_weight()
58.12179999999999


Reinis

O , 2011-06-07 10:34 +0200, Alex Ander rakstīja:
> Ok, so recently I have been enjoying some of oasa's features of
> generating pdf's from a list of smiles as input.
> But, I'd like to have the molecular weight from each of the molecules
> generated.
> 
> Is it possible to get this with the same script? Perhaps outputting to
> a file?
> I may just look for different ways to get this value, but it would be
> nice to know how to do this in bkchem/oasa.
> 
> regards,
> Alexander
> _______________________________________________
> BKChem-user mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/bkchem-user





reply via email to

[Prev in Thread] Current Thread [Next in Thread]