Skip to content

Commit

Permalink
Add an index for each of the outputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoale committed Sep 11, 2024
1 parent daa42a7 commit 4af51cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datalab/datalab_session/data_operations/subtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def operate(self):
self.set_percent_completion(.10)

outputs = []
for x in input_image_data_list:
o = np.subtract(x, subtraction_image)
for index, input_image in enumerate(input_image_data_list):
o = np.subtract(input_image, subtraction_image)
fits_file = create_fits(self.cache_key, o)
large_jpg_path, small_jpg_path = create_jpgs(self.cache_key, fits_file)
output_file = save_fits_and_thumbnails(self.cache_key, fits_file, large_jpg_path, small_jpg_path)
output_file = save_fits_and_thumbnails(self.cache_key, fits_file, large_jpg_path, small_jpg_path, index)
outputs.append(output_file)


Expand Down

0 comments on commit 4af51cf

Please sign in to comment.