From 3672fc058a87e201f7ce51c88182c9c25913be6e Mon Sep 17 00:00:00 2001 From: iamsaswata Date: Sun, 16 Nov 2025 13:04:05 -0800 Subject: [PATCH] Fix broken test function parameter order Corrected parameter order in test_read() function call to match open_data() signature. Before: open_data((2018, 2018), 'rain', 'yearwise', cwd) After: open_data('rain', 2018, 2018, 'yearwise', cwd) Correct signature: open_data(var_type, start_yr, end_yr, fn_format, file_dir) Also fixed spacing in assert statement for consistency. --- test/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.py b/test/test.py index e27459b..2f36961 100644 --- a/test/test.py +++ b/test/test.py @@ -5,8 +5,8 @@ def test_read(): cwd = os.path.dirname(os.path.abspath(__file__)) #/home/travis/build/iamsaswata/imdlib - a = imd.open_data((2018, 2018), 'rain','yearwise', cwd) - assert a.data.shape == (365,135,129) + a = imd.open_data('rain', 2018, 2018, 'yearwise', cwd) + assert a.data.shape == (365, 135, 129) #a.shape