Skip to content

Commit cc0df22

Browse files
authored
WIP use smooth piff models (#27)
1 parent a354c19 commit cc0df22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

montara/des_tile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def setup(self, config, base, file_num, logger):
470470

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

483483
# make sure the draw method is correct for Piff
484-
if base["psf"].get("depixelize", False):
484+
if base["psf"].get("depixelize", False) or base["psf"]["type"] == "DES_SmoothPiff":
485485
assert base['stamp']['draw_method'] == 'auto'
486486
else:
487487
assert base['stamp']['draw_method'] == 'no_pixel'

0 commit comments

Comments
 (0)