Closed targos closed 5 months ago
@thsa What do you think?
@targos Hi Michael, sorry for the late response. I didn't notice the question. I have just fixed it. In this situation the StereoMolecule was re-using the Canonizer from previous runs and taking parity information from there.
Concerning createCoordinates = false: You cannot use molecule.getIDCode(), if the Molecule has valid parities and does not contain atom coordinates. Thus, after Smiles parsing with createCoordinates = false we have this sutuation and it will always print 'null' now. molecule.getIDCode() is a convenient method, which only works, if a Canonizer was created and used during the ensureHelperArrays() call.
Thank you for the fix.
Once it's been called with
readStereoFeatures = true
, subsequent calls withreadStereoFeatures = false
don't work as expected:Moreover, if we call it with
createCoordinates = false
, it will always printgC`DAbZHRVXRP
, regardless of the value ofreadStereoFeatures
.