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

getKet function return ket file without selection flags #4238

Closed
AlexeyGirin opened this issue Mar 13, 2024 · 2 comments · Fixed by #4339
Closed

getKet function return ket file without selection flags #4238

AlexeyGirin opened this issue Mar 13, 2024 · 2 comments · Fixed by #4339

Comments

@AlexeyGirin
Copy link
Collaborator

Description
getKet function return ket file without selection flags

Steps to Reproduce

  1. Try to get ket file using getKet function for simple atom (H2)

Actual behavior

{
    "root": {
        "nodes": [
            {
                "$ref": "mol0"
            }
        ],
        "connections": [],
        "templates": []
    },
    "mol0": {
        "type": "molecule",
        "atoms": [
            {
                "label": "H",
                "location": [
                    18.1,
                    -6.1000000000000005,
                    0
                ]
            }
        ]
    }
}

Expected behavior

{
    "root": {
        "nodes": [
            {
                "$ref": "mol0"
            }
        ],
        "connections": [],
        "templates": []
    },
    "mol0": {
        "type": "molecule",
        "atoms": [
            {
                "label": "H",
                "location": [
                    18.1,
                    -6.1000000000000005,
                    0
                ],
                "selected": true
            }
        ]
    }
}

Environment details (please complete the following information):

@Zhirnoff
Copy link
Collaborator

Test added to the automation table.

@AlexeyGirin
Copy link
Collaborator Author

AlexeyGirin commented Apr 16, 2024

Fixed.
Ketcher Version 2.21.0-rc.1 Build at 2024-04-15; 20:00:15
Indigo Toolkit Version 1.20.0-rc.1.0-g8e8ffc3c3-wasm32-wasm-clang-12.0.0

{
    "root": {
        "nodes": [
            {
                "$ref": "mol0"
            }
        ],
        "connections": [],
        "templates": []
    },
    "mol0": {
        "type": "molecule",
        "atoms": [
            {
                "label": "H",
                "location": [
                    20.40885119736195,
                    -9.76364661693573,
                    0
                ],
                "selected": true
            }
        ],
        "stereoFlagPosition": {
            "x": 20.40885119736195,
            "y": 8.76364661693573,
            "z": 0
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment