From 8b6f7b0385340c6cc0588df60f0edd3ddf4aa1cb Mon Sep 17 00:00:00 2001 From: alan <alan@Arran.bio.ed.ac.uk> Date: Tue, 6 Sep 2022 17:59:39 +0100 Subject: [PATCH] refactor(tests): get_traps->get_tiles --- extraction/examples/tiler_error.py | 2 +- tests/aliby/test_baby_client.py | 2 +- tests/aliby/test_tiler.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extraction/examples/tiler_error.py b/extraction/examples/tiler_error.py index 89973296..78619c8f 100644 --- a/extraction/examples/tiler_error.py +++ b/extraction/examples/tiler_error.py @@ -27,7 +27,7 @@ plt.show() tiler = Tiler(expt, template=trap_template) # Load images (takes about 5 mins) -trap_tps = tiler.get_traps_timepoint(0, tile_size=117, z=[2]) +trap_tps = tiler.get_tiles_timepoint(0, tile_size=117, z=[2]) # Plot found traps nrows, ncols = (5, 5) diff --git a/tests/aliby/test_baby_client.py b/tests/aliby/test_baby_client.py index 3cc42c94..a8d131a0 100644 --- a/tests/aliby/test_baby_client.py +++ b/tests/aliby/test_baby_client.py @@ -42,7 +42,7 @@ def test_client(): num_timepoints = 5 traps_tps = [ - seg_expt.get_traps_timepoint( + seg_expt.get_tiles_timepoint( tp, tile_size=81, channels=[0], z=[0, 1, 2, 3, 4] ).squeeze() for tp in range(num_timepoints) diff --git a/tests/aliby/test_tiler.py b/tests/aliby/test_tiler.py index c046d5dd..e4e04730 100644 --- a/tests/aliby/test_tiler.py +++ b/tests/aliby/test_tiler.py @@ -43,7 +43,7 @@ def trap_timelapse(tiler, trap_idx, channel, z): def timepoint_traps(tiler, tp_idx, channel, z, tile_size): channel_id = tiler.get_channel_index(channel) - traps = tiler.get_traps_timepoint( + traps = tiler.get_tiles_timepoint( tp_idx, tile_size=tile_size, channels=[channel_id], z=list(range(z)) ) return traps -- GitLab