Skip to content

Commit

Permalink
Specify guess distances in the parsl runtime config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonbb committed Oct 15, 2024
1 parent 3e92054 commit f83ef49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/kbmod_wf/multi_night_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,20 @@ def workflow_runner(env=None, runtime_config={}):
# reproject each WorkUnit for a range of distances
reproject_futures = []
repro_wu_filenames = []
runtime_config=app_configs.get("reproject_wu", {})
for i in range(len(original_work_unit_futures)):
f = original_work_unit_futures[i]
for distance in [46.7, 30.6]: # The reprojected distance in AU
output_filename=wu_filenames[i]+ f".{distance}.repro"
# Get the requested heliocentric guess distances (in AU) for reflex correction.
# If none are provided, default to 42.0 AU.
distances = runtime_config["helio_guess_dists"] if "helio_guess_dists" in runtime_config else [42.0]
for dist in distances:
output_filename=wu_filenames[i]+ f".{dist}.repro"
repro_wu_filenames.append(output_filename)
reproject_futures.append(
reproject_wu(
inputs=[f, distance],
inputs=[f, dist],
outputs=[File(output_filename)],
runtime_config=app_configs.get("reproject_wu", {}),
runtime_config=runtime_config,
logging_file=logging_file,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def reproject_workunit(self):
wu._per_image_wcs,
image_width,
image_height,
wu.heliocentric_dist,
self.guess_dist, # heliocentric guess distance in AU
Time(wu.get_all_obstimes(), format="mjd"),
self.point_on_earth,
npoints=10,
Expand Down

0 comments on commit f83ef49

Please sign in to comment.