From b82e42fe55b51843ce102843d7e0b3c0a2547a7c Mon Sep 17 00:00:00 2001 From: nsevilla Date: Tue, 23 May 2023 12:45:23 -0700 Subject: [PATCH] Implement testLoadVector first version --- tests/test_actions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_actions.py b/tests/test_actions.py index e6efad457..2b6989501 100644 --- a/tests/test_actions.py +++ b/tests/test_actions.py @@ -247,7 +247,11 @@ def testFractionalDifference(self): # Basic vectorActions - # def testLoadVector(self): TODO: implement + def testLoadVector(self): + action = LoadVector(vectorKey="vector") + inputData = {"vector": np.arange(5)} + result = action(inputData) + np.testing.assert_array_equal(result, inputData["vector"]) def testDownselectVector(self): selector = FlagSelector(selectWhenTrue=["{band}_flag"])