-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
account for difference in initial stacked array dimensionality when p…
…arsing single-channel images; #422
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 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
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
__email__ = "[email protected]" | ||
|
||
from looptrace.nd2io import * | ||
from looptrace.nd2io import _AXIS_SIZES_KEY | ||
from looptrace.nd2io import AXIS_SIZES_KEY | ||
from looptrace.integer_naming import get_fov_names_N | ||
|
||
POSITION_PREFIX = "Point000" | ||
|
@@ -179,7 +179,7 @@ def test_underscore_prefixed_and_or_non_nd2_files_are_skipped_and_good_ones_have | |
unique_fields_of_view.add(p) | ||
# Patch the metadata parser to be a no-op, the ND2 reader to be context manager-like, | ||
# and dask call to be identity. | ||
with mock.patch("looptrace.nd2io.parse_nd2_metadata", return_value={_AXIS_SIZES_KEY: OrderedDict((dim, 0) for dim in ["Z", "C", "Y", "X"])}), \ | ||
with mock.patch("looptrace.nd2io.parse_nd2_metadata", return_value={AXIS_SIZES_KEY: OrderedDict((dim, 0) for dim in ["Z", "C", "Y", "X"])}), \ | ||
mock.patch("looptrace.nd2io.nd2.ND2File", side_effect=lambda *_, **__: mocked_nd2_handle()) as mock_nd2_read, \ | ||
mock.patch("looptrace.nd2io.da.stack", side_effect=lambda arrs: arrs), \ | ||
mock.patch("looptrace.nd2io.da.moveaxis", side_effect=lambda _1, _2, _3: mock.Mock(shape=None)): | ||
|