Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling kbmod-tno-scripts over to the corresponding tasks. #18

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

drewoldag
Copy link
Collaborator

@drewoldag drewoldag commented Jul 18, 2024

This PR is composed of several rough commits to pull over the code, including:

  • Initial commit of ic_to_wu task. Copied script over, peeled away what was not needed.
  • Pulling over the reprojection portion of the old ic_to_wu script.
  • Included kbmod search script
  • General clean up of function parameter names, and first pass over cleaning up the logging messages.

@drewoldag drewoldag requested a review from wilsonbb July 18, 2024 18:28
@drewoldag drewoldag self-assigned this Jul 18, 2024
def no_uri_to_ic(target_uris_file_path=None, uris_base_dir=None, ic_output_file_path=None, logger=None):
def uri_to_ic(
uris_filepath: str = None,
uris_base_dir: str = None,
Copy link
Collaborator Author

@drewoldag drewoldag Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilsonbb I have an open question about uris_base_dir. I don't think that we really need this as an input parameter, but before I yanked it out, I wanted to check to see if I was missing something here. I also have an open issue #8 asking this same question since I noticed it a while ago.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I recall correctly, this was added because Colin was running the scripts both on klone and on another cluster where he had copied that target uris over (I believe on Monsoon). So he could then run the same script on the same target uris files but then specify a different base directory (the folder where he had copied the data to)

I don't think it's essential to keep in, but maybe not remove it until we settle whether we will be changing the .lst files after Dino's work

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ColinOrionChandler could you confirm this? Was this parameter in place so that you could run on multiple clusters?

@drewoldag drewoldag linked an issue Jul 18, 2024 that may be closed by this pull request
Copy link
Collaborator

@wilsonbb wilsonbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Drew! Left a few comments for some additional docstrings, but overall this looks correct to me.

While there are still items to clean up, I'm also fine with merging as we are so we can begin testing the current workflow on klone and see how parsl fares with our actual workloads before fiddling further.

src/kbmod_wf/workflow.py Show resolved Hide resolved
def no_uri_to_ic(target_uris_file_path=None, uris_base_dir=None, ic_output_file_path=None, logger=None):
def uri_to_ic(
uris_filepath: str = None,
uris_base_dir: str = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I recall correctly, this was added because Colin was running the scripts both on klone and on another cluster where he had copied that target uris over (I believe on Monsoon). So he could then run the same script on the same target uris files but then specify a different base directory (the folder where he had copied the data to)

I don't think it's essential to keep in, but maybe not remove it until we settle whether we will be changing the .lst files after Dino's work

src/kbmod_wf/task_impls/reproject_wu.py Outdated Show resolved Hide resolved
src/kbmod_wf/task_impls/reproject_wu.py Show resolved Hide resolved
src/kbmod_wf/task_impls/reproject_wu.py Show resolved Hide resolved
src/kbmod_wf/task_impls/reproject_wu.py Show resolved Hide resolved
src/kbmod_wf/task_impls/kbmod_search.py Outdated Show resolved Hide resolved
@drewoldag drewoldag requested a review from wilsonbb July 19, 2024 17:52
Copy link
Collaborator

@wilsonbb wilsonbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks LGTM!

@drewoldag drewoldag merged commit 0f16133 into main Jul 19, 2024
2 of 6 checks passed
@drewoldag drewoldag deleted the issue/17/port-tno-scripts branch July 19, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port kbmod-tno-scripts over to kbmod-wf
2 participants