-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[easy] Move data order concerns to its own module. (#792)
This is necessary so we can have modules that ImageStack depends on that depend on this data.
- Loading branch information
Showing
2 changed files
with
22 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import collections | ||
from typing import Mapping | ||
|
||
from starfish.types import Indices | ||
|
||
_DimensionMetadata = collections.namedtuple("_DimensionMetadata", ['order', 'required']) | ||
|
||
AXES_DATA: Mapping[Indices, _DimensionMetadata] = { | ||
Indices.ROUND: _DimensionMetadata(0, True), | ||
Indices.CH: _DimensionMetadata(1, True), | ||
Indices.Z: _DimensionMetadata(2, False), | ||
} | ||
N_AXES = max(data.order for data in AXES_DATA.values()) + 1 |
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