From ce257d190ab406e13b61bcbb8e17aaaf803b05e3 Mon Sep 17 00:00:00 2001
From: Arin Wongprommoon <arin.wongprommoon@ed.ac.uk>
Date: Fri, 13 Jan 2023 15:26:16 +0000
Subject: [PATCH] test(aliby): fix typo

WHY IS THIS CHANGE NEEDED?:
- https://git.ecdf.ed.ac.uk/swain-lab/aliby/aliby/-/jobs/56786 because
  AttributeError: 'function' object has no attribute 'shape'

REFERENCES:
- issue #53
---
 tests/aliby/pipeline/test_image.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/aliby/pipeline/test_image.py b/tests/aliby/pipeline/test_image.py
index 0a75e859..f499d170 100644
--- a/tests/aliby/pipeline/test_image.py
+++ b/tests/aliby/pipeline/test_image.py
@@ -36,4 +36,4 @@ def test_pad_array(sample_da, dim, n_empty_slices):
     # Checks that original image array is there and is at the last index
     assert np.array_equal(padded_da.compute()[ix], sample_da.compute()[0])
     # Checks that the additional axis is extended correctly
-    assert padded_da.compute.shape[dim] == n_empty_slices + 1
+    assert padded_da.compute().shape[dim] == n_empty_slices + 1
-- 
GitLab