-
Notifications
You must be signed in to change notification settings - Fork 0
feature: Add method `$microplateSet->positionFromLocation($location, … #30
base: master
Are you sure you want to change the base?
Conversation
87cd5f8 to
730be56
Compare
|
|
||
| - Add method `$microplateSet->positionFromLocation($location, $direction)` | ||
|
|
||
| - ## v6.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - ## v6.3.0 | |
| ## v6.3.0 |
|
|
||
| ### Added | ||
|
|
||
| - Add method `$microplateSet->positionFromLocation($location, $direction)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Add method `$microplateSet->positionFromLocation($location, $direction)` | |
| - Add method `MicroplateSet::positionFromLocation` |
| /** | ||
| * @param Location<TCoordinateSystem> $location | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** | |
| * @param Location<TCoordinateSystem> $location | |
| */ | |
| /** @param Location<TCoordinateSystem> $location */ |
| } | ||
|
|
||
| /** @return list<string> */ | ||
| /** @return array<int,string> */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list is a stronger guarantee, why weaken it?
| $positionOnSet = $positionOnPlate * array_keys($this->plateIDs())[$location->plateID]; | ||
| assert(is_int($positionOnSet)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes no sense to me, array_keys($this->plateIDs()) will be something like [0, 1, ..] - then you index into this with another plateID? Maybe you need array_search?
…$direction)`
Changes
$microplateSet->positionFromLocation($location, $direction)