Skip to content

Commit

Permalink
Copy image
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Jul 1, 2023
1 parent 0caf8ad commit e6bafd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mirar/processors/astromatic/swarp/swarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Module relating to `swarp <https://www.astromatic.net/software/swarp`_
"""
import logging
from copy import deepcopy
from pathlib import Path
from typing import Literal

Expand Down Expand Up @@ -185,7 +186,8 @@ def _apply_to_images(
with open(swarp_image_list_path, "w", encoding="utf8") as img_list, open(
swarp_weight_list_path, "w", encoding="utf8"
) as weight_list:
for image in batch:
for _image in batch:
image = deepcopy(_image)
if missing_scale_bool:
ra, dec, pixscale, imgpixsize = self.get_image_scale(image)
all_pixscales.append(pixscale)
Expand Down

0 comments on commit e6bafd6

Please sign in to comment.