1
$\begingroup$

I would like to remove CH3 labels from svg images generated in openbabel in Python. I am thinking I should use obConversion.SetOptions("w",openbabel.OBConversion.OUTOPTIONS) and replace "w" with another character. This does not work. Do you have any ideas? The image is below, for reference.

enter image description here

$\endgroup$
2
$\begingroup$
obConversion.AddOption("C",openbabel.OBConversion.OUTOPTIONS)

Referenced openbabel documentation. Setting it to "C" will remove terminal carbons.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.