Skip to content

Commit

Permalink
WIP use smooth piff models (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Mar 19, 2024
1 parent a354c19 commit cc0df22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions montara/des_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def setup(self, config, base, file_num, logger):

# make sure the draw method is correct for PSFEx
assert base['stamp']['draw_method'] == 'no_pixel'
elif base["psf"]["type"] == "DES_Piff":
elif base["psf"]["type"] in ["DES_Piff", "DES_SmoothPiff"]:
output_piff_path = os.path.join(
base["base_dir"],
os.path.relpath(orig_piff_path, imsim_data),
Expand All @@ -481,7 +481,7 @@ def setup(self, config, base, file_num, logger):
shutil.copyfile(orig_piff_path, output_piff_path)

# make sure the draw method is correct for Piff
if base["psf"].get("depixelize", False):
if base["psf"].get("depixelize", False) or base["psf"]["type"] == "DES_SmoothPiff":
assert base['stamp']['draw_method'] == 'auto'
else:
assert base['stamp']['draw_method'] == 'no_pixel'
Expand Down

0 comments on commit cc0df22

Please sign in to comment.