Refactor updateUnknownsAndDuplicates to only check certain wells, making it more efficient

Open
#591 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript

Research direction

Start in labcontrol/gui/static/js/plateViewer.js at patchWell() and updateUnknownsAndDuplicates(), then read the linked PR #585 discussion for the performance context. Trace which wells each change can affect and define how the refactored check will identify them. Done means the function no longer brute-force checks unrelated wells while preserving unknown and duplicate detection.

Written by the indexing model from the issue text.

Description

code refactor front-end

Recapping this issue: I wrote the following comment in patchWell()
https://github.com/biocore/LabControl/blob/10ef1ef11f677957f23dc9765235e5642a81e1e1/labcontrol/gui/static/js/plateViewer.js#L458-L472

@AmandaBirmingham responded to it here

Probably. updateUnknownsAndDuplicates is completely agnostic to whatever change triggered it--but that means it has to be brute-force and re-check everything. I think it is the source of a lot of the performance issues in the platemapper, and probably needs to be rethought from the ground up. Could you add an issue to the repo for this, and then remove this comment?

Dominant language
Python
Stars
2
Forks
15
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from biocore/LabControl

All issues in biocore/LabControl

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.