mi2mol"><code class="name flex">
<span>def <span class="ident">smi2mol</span></span>(<span>self, smi)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def smi2mol(self,smi):
  molSize=self._molsize
  
  mol=Chem.MolFromSmiles(smi)
  mc = Chem.Mol(mol.ToBinary())
  if self._kekulize:
    try:
        Chem.Kekulize(mc)
    except:
        mc = Chem.Mol(mol.ToBinary())
  if not mc.GetNumConformers():
      