From e65465aa93b07a32940801c3ecf204f330b35f04 Mon Sep 17 00:00:00 2001 From: "William (Lindy) Lindstrom" Date: Wed, 11 Sep 2024 19:32:04 +0100 Subject: [PATCH] fix typo in np.multiply function call --- datalab/datalab_session/tests/test_operations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datalab/datalab_session/tests/test_operations.py b/datalab/datalab_session/tests/test_operations.py index 5e0b7b1..0ea3281 100644 --- a/datalab/datalab_session/tests/test_operations.py +++ b/datalab/datalab_session/tests/test_operations.py @@ -274,11 +274,12 @@ def test_operate(self, mock_create_jpgs, mock_save_fits_and_thumbnails, mock_get # Create a negative images using numpy negative_image = fits.open(self.test_fits_1_path) - negative_image.data = np.mult(negative_image.data, -1) + # Multiply the data by -1 to create a negative image + negative_image.data = np.multiply(negative_image.data, -1) fits.writeto(self.temp_fits_1_negative_path, negative_image, overwrite=True) negative_image = fits.open(self.test_fits_2_path) - negative_image.data = np.mult(negative_image.data, -1) + negative_image.data = np.multiply(negative_image.data, -1) fits.writeto(self.temp_fits_2_negative_path, negative_image, overwrite=True) # return the test fits paths in order of the input_files instead of aws fetch