Skip to content

Script scanner slow when changing parameters #245

Description

@fanmingyu212

The script scanner gui sometimes freezes for 1-10 s when changing parameters through the parameter vault using set_parameter function. Restarting the script scanner gui sometimes solves the issue, but sometimes not.

The line of code that takes the most time to execute is https://github.com/CampbellGroup/common/blob/master/lib/clients/script_scanner_gui/tree_view/Models.py#L198. Changing line 179 above max_index= self.createIndex(index.row(), node.columns, index.internalPointer()) to max_index= self.createIndex(index.row(), node.columns-1, index.internalPointer()) seems to solve the issue.

Activity

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

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