From ff6d9f71e757643c697c6d5217285769fff542cd Mon Sep 17 00:00:00 2001 From: Jonah Wagenveld Date: Tue, 19 May 2020 14:32:28 +0200 Subject: [PATCH] Changes to casa test following review --- regions/io/crtf/new_casa_tests/casa_mask_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regions/io/crtf/new_casa_tests/casa_mask_test.py b/regions/io/crtf/new_casa_tests/casa_mask_test.py index f17ffb63..772a84c5 100644 --- a/regions/io/crtf/new_casa_tests/casa_mask_test.py +++ b/regions/io/crtf/new_casa_tests/casa_mask_test.py @@ -79,8 +79,9 @@ def test_casa_masking(): ia = image() ia.open(tmpdir+'/SIM.mask') mask_array = ia.getregion() + ia.close() with open('data/binary_mask.pkl', 'rb') as f: ref_mask = pickle.load(f) - assert mask_array == ref_mask \ No newline at end of file + assert all(mask_array == ref_mask)