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

Allow SlideData to use existing h5path files #337

Open
wants to merge 22 commits into
base: load-data-in-workers
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Debug test
  • Loading branch information
tddough98 committed Oct 20, 2022
commit 6d4cc113d085e37ecd715b461d54ba1e6b770f90
8 changes: 6 additions & 2 deletions tests/integration_tests/test_pipeline_running.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,17 @@ def test_pipeline_overlapping_tiles(tmp_path, stride, pad, tile_size):
def test_pipeline_on_h5path(tmp_path, dist, cluster):
save_path = str(tmp_path) + str(np.round(np.random.rand(), 8)) + "HE_slide.h5"
# Make h5path
slide = HESlide("tests/testdata/small_HE.svs")
slide = HESlide(
"tests/testdata/small_HE.svs",
# need to save as np.uint8 to be able to run BoxBlur after reloading h5path
dtype=np.uint8,
)
pipeline = Pipeline([BoxBlur(kernel_size=15)])
cli = Client(cluster) if dist else None
slide.run(pipeline, distributed=dist, client=cli)
slide.write(path=save_path)
# Load saved h5path and run pipeline
h5path_slide = HESlide(save_path, dtype=np.uint8)
h5path_slide = HESlide(save_path)
h5path_slide.run(pipeline, distributed=dist, client=cli)
h5path_slide.write(path=save_path)

Expand Down