epam / epam/Indigo

Calculated values button returns error for selected parts without R/S groups

Open
#1,074 0 comments 0 reactions 1 assignee Claimed by @even1024 View on GitHub
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce**
1. Open the Ketcher SA version
2. Place on the canvas structures with R-group, or with attachment points, S-group SRU polymer or Multiple group
[Archive full.zip](https://github.com/epam/Indigo/files/11018092/Archive.full.zip)

3. Usung selection tool, select part of the structure without R or S groups
4. Click on the 'Calculated Values' button (Alt+C)

**Expected behavior**
The calculated Values window is displayed, and all fields are filled with calculated values for selected part of the structure.

**Actual behavior**
All kinds of errors are displayed:
Attach. point: "Cannot calculate properties for RGroups"
R-group: "calculation error: Cannot calculate mass for structure with pseudoatoms, template atoms or RSites"
SRU polymer: "calculation error: Cannot calculate mass for structure with repeating units"
Multiple group: "Error message: Given string could not be loaded as (query or plain) molecule or reaction, see the error messages: 'array: invalid index -1 (size=9)', 'RXN loader: bad header {', 'RXN loader: bad header {', 'array: invalid index -1 (size=9)'

**Attachments**

https://user-images.githubusercontent.com/65543532/226346855-bacb1153-7455-45a3-8dc0-f45b91a6841e.mov

**Indigo/Bingo version**
Version 1.10.0-rc.4.0-g3d215fe5b-wasm32-wasm-clang-13.0.0

**Additional context**
Note! The Remote version works as expected.
TS EPMLSOPKET-10339, 10341, 10342, 10343

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.