Skip to content

Commit

Permalink
fix typo in np.multiply function call
Browse files Browse the repository at this point in the history
  • Loading branch information
phycodurus committed Sep 11, 2024
1 parent 7684b02 commit e65465a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datalab/datalab_session/tests/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e65465a

Please sign in to comment.