generated from spawnia/php-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: coordinate system for mm block in tecan has no J column
- Loading branch information
Showing
6 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MLL\Utils\Microplate; | ||
|
||
class CoordinateSystem2x16NoJ extends CoordinateSystem | ||
{ | ||
/** Duplicates @see CoordinateSystem::positionsCount() for static contexts. */ | ||
public const POSITIONS_COUNT = 32; | ||
|
||
/** The Tecan MM block has no J on its rows */ | ||
public function rows(): array | ||
{ | ||
return [...range('A', 'I'), ...range('K', 'Q')]; | ||
} | ||
|
||
public function columns(): array | ||
{ | ||
return range(1, 2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MLL\Utils\Microplate\Scalars; | ||
|
||
use MLL\GraphQLScalars\Regex; | ||
|
||
class Row16NoJ extends Regex | ||
{ | ||
public ?string $description = 'Represents a row in a coordinate system with 16 rows without the letter J'; | ||
|
||
public static function regex(): string | ||
{ | ||
return '/^[A-IK-Q]$/'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters