Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/147.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug that passed the wrong thing to stampmaker, so stampmaker was always failing
8 changes: 4 additions & 4 deletions phrosty/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,12 +798,12 @@ def log_stamp_err( x ):

partialstamp = partial(stampmaker, self.diaobj.ra, self.diaobj.dec, np.array([100, 100]))
# template path, savedir, savename
templstamp_args = ( (ti.image.path, self.dia_out_dir, f'stamp_{str(ti.image.name)}')
for ti in self.template_images )

templstamp_args = ( (ti.image, self.dia_out_dir, f'stamp_{str(ti.image.name)}')
for ti in self.template_images )
if self.nwrite > 1:
with Pool( self.nwrite ) as templ_stamp_pool:
templ_stamp_pool.starmap_async( partialstamp, templstamp_args )
templ_stamp_pool.starmap_async( partialstamp, templstamp_args,
error_callback=log_stamp_err )
templ_stamp_pool.close()
templ_stamp_pool.join()

Expand Down