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

Adding a stereo flag when opening the structure #632

Closed
AleksandrPokrovskii opened this issue Jul 14, 2021 · 2 comments · Fixed by #655 or #666
Closed

Adding a stereo flag when opening the structure #632

AleksandrPokrovskii opened this issue Jul 14, 2021 · 2 comments · Fixed by #655 or #666
Assignees
Milestone

Comments

@AleksandrPokrovskii
Copy link
Contributor

AleksandrPokrovskii commented Jul 14, 2021

Steps to Reproduce

  1. Launch Ketcher
  2. Add stereo bond (e.g. Single Up Bond)
  3. Click the 'Save As' button and save as *.mol file.
  4. Open the saved *.mol file.

Expected behavior
Stereo flag is not displayed
image

Actual behavior
Stereo flag is displayed
image

Additional context
IE: Adding a stereo flag when copy/paste or cut/paste a stereo bond.

@AleksandrPokrovskii AleksandrPokrovskii changed the title IE: Adding a stereo flag when copying a stereo bond Adding a stereo flag when opening the structure Jul 14, 2021
@AndreiMazol AndreiMazol added this to the Release 2.3.0 milestone Jul 15, 2021
@nseufulina
Copy link

All bonds from Single/Double bonds segment has this issue:
Expected behavior
Stereo flag is not displayed
image

Actual behavior:
Stereo flag is displayed
image

@MagomedGasanov MagomedGasanov linked a pull request Jul 19, 2021 that will close this issue
MagomedGasanov added a commit that referenced this issue Jul 19, 2021
AndreiMazol pushed a commit that referenced this issue Jul 19, 2021
* Move isCorrectStereoCenter func to core

* Move isStereoCanter from Struct to helpers/utils

* Rename ValidateStereo tp StereoValidator
@AleksandrPokrovskii
Copy link
Contributor Author

The stereo flag is saved when copying, but it should not.

Steps to Reproduce:

  1. Launch Ketcher
  2. Add chain
  3. Add stereo bond (e.g. Single Up Bond)
  4. Сopy a part of the structure so that the stereo atom is the last
  5. Paste the copied structure

Expected behavior
Stereo flag is not displayed
image

Actual behavior
Stereo flag is displayed
image

AndreiMazol pushed a commit that referenced this issue Jul 21, 2021
* Fix copy a part of structure with stereo

* Update stereolabels for all formats of structs

* Fix stereflag

* Fix copy single atom

* Fix single atom merge stereoUpdate

* Fix one atom merge update stereoflag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment