I'm trying to understand an existing RDKit-based KNIME workflow and having used RDKit in Python previously I can't understand the RDKit Aromatizer node. It calls .setAromaticity(temp) where temp is a RDKit molecule and then compares the result to 0 to determine success but what is happening here? SetAromaticity in the C++ API which the Java KNIME is wrapping returns void and in Python it returns None. What does the comparison to 0 do here?
Line I'm referencing:
|
if (RDKFuncs.setAromaticity(temp) != 0) { // Success |
I'm trying to understand an existing RDKit-based KNIME workflow and having used RDKit in Python previously I can't understand the RDKit Aromatizer node. It calls
.setAromaticity(temp)wheretempis a RDKit molecule and then compares the result to0to determine success but what is happening here?SetAromaticityin the C++ API which the Java KNIME is wrapping returnsvoidand in Python it returnsNone. What does the comparison to0do here?Line I'm referencing:
knime-rdkit/org.rdkit.knime.nodes/src/org/rdkit/knime/nodes/aromatize/RDKitAromatizeNodeModel.java
Line 242 in d760417