Skip to content

Object level properties and selections #479

Description

@pslacerda1

The profiling of a small realistic benchmark I did for my plugin revealed that set_atom_property() take a significant amount of time.

Image

I can set and get properties from objects, but can select only atoms. Because of this I need to set_atom_property() expensively.

For instance:

from pymol import cmd as pm

pm.pseudoatom('MyObj')

pm.set_property('CD', 7.9, 'MyObj')
pm.get_object_list('p.CD<8')  # returns None

# but

pm.set_atom_property('CD', 7.9, 'MyObj')
pm.get_object_list('p.CD<8')  # returns ['MyObj']

What can I do to improve the time performance of my tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions