Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addImplicitsHydrogens #8

Closed
lpatiny opened this issue Sep 26, 2016 · 2 comments
Closed

addImplicitsHydrogens #8

lpatiny opened this issue Sep 26, 2016 · 2 comments

Comments

@lpatiny
Copy link

lpatiny commented Sep 26, 2016

@rufenerc

In the code:

Before returning from the function please could you add:

molecule.ensureHelperArrays(Molecule.cHelperNeighbours);

Like that we get a molecule with right connectivity helper arrays after expanding the hydrogens.

@thsa
Copy link
Contributor

thsa commented Sep 26, 2016

Dear Luc,

this would be colliding with the general concept that one always calls
ensureHelperArrays() just before(!) they are needed and after a function
just in case somebody could need them. There are various reasons:

  • at the end of a method one cannot foresee, which state will be needed
    (neighbours, rings or even stereostuff)
  • after the method creating helpers one might do some other molecule
    changes, which would destroy the helper state again

Finally, this is your code, but I would advise against it and call
ensureHelperArrays() just before where you need it.

Best wishes,

Thomas

On Mon, Sep 26, 2016 at 1:13 PM, Luc Patiny notifications@github.com
wrote:

@rufenerc https://github.com/rufenerc

In the code:

https://github.com/Actelion/openchemlib/blob/
61d98e7/src/main/java/com/
actelion/research/chem/contrib/HydrogenHandler.java#L266

Before returning from the function please could you add:

molecule.ensureHelperArrays(Molecule.cHelperNeighbours);

Like that we get a molecule with right connectivity helper arrays after
expanding the hydrogens.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJpSBkAIfTfK8fq14hlhmZSXUNDEdGV2ks5qt6jsgaJpZM4KGZ1l
.

The information of this email and in any file transmitted with it is
strictly confidential and may be legally privileged.
It is intended solely for the addressee. If you are not the intended
recipient, any copying, distribution or any other use of this email is
prohibited and may be unlawful. In such case, you should please notify the
sender immediately and destroy this email.
The content of this email is not legally binding unless confirmed by letter.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized to
state them to be the views of the sender's company.

@lpatiny
Copy link
Author

lpatiny commented Sep 26, 2016

OK it will be a habit to take ... Thanks

@lpatiny lpatiny closed this as completed Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants