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

Fix well_from_shape bug #223

Merged
merged 4 commits into from Jan 27, 2020

Conversation

yaoyuyang
Copy link
Contributor

well_from_shape was not returning correct wells for index beyond one.
For example, for a 384 well with origin well of A2 and shape of 96 well
to select, it should return the 2nd quadrant, however, the current code
returns the 1st quadrant wells. We added failing tests and fixed this bug
by using a new approach for calculating well indices and checking boundaries.

well_from_shape was not returning correct wells for index beyond one.
For example, for a 384 well with origin well of A2 and shape of 96 well
to select, it should return the 2nd quadrant, however, the current code
returns the 1st quadrant wells. This commit adds the tests and shows
the test are failing.
@yaoyuyang
Copy link
Contributor Author

cc @gasnew

rhysormond
rhysormond previously approved these changes Jan 27, 2020
Copy link
Member

@rhysormond rhysormond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for cleaning up some legacy code and making it more readable!

autoprotocol/container.py Show resolved Hide resolved
rhysormond
rhysormond previously approved these changes Jan 27, 2020
rhysormond
rhysormond previously approved these changes Jan 27, 2020
Copy link
Member

@rhysormond rhysormond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rhysormond rhysormond merged commit 093df73 into autoprotocol:master Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants