From 2568690cd7f1be3d8a81d0da7515f96f1fab5834 Mon Sep 17 00:00:00 2001 From: drewoldag <47493171+drewoldag@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:07:40 -0700 Subject: [PATCH] Use correct output name and directory for reprojected work. --- src/kbmod_wf/task_impls/reproject_wu.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kbmod_wf/task_impls/reproject_wu.py b/src/kbmod_wf/task_impls/reproject_wu.py index 72eba76f..7e0c0724 100644 --- a/src/kbmod_wf/task_impls/reproject_wu.py +++ b/src/kbmod_wf/task_impls/reproject_wu.py @@ -145,11 +145,14 @@ def reproject_workunit(self): self.logger.debug(f"Reprojecting WorkUnit with {self.n_workers} workers...") last_time = time.time() + directory_containing_reprojected_shards, reprojected_wu_filename = os.path.split( + self.reprojected_wu_filepath + ) reprojection.reproject_lazy_work_unit( wu, patch_wcs, - directory_containing_shards, - wu_filename, + directory_containing_reprojected_shards, + reprojected_wu_filename, frame="ebd", max_parallel_processes=self.n_workers, )