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

ALCF Update #28

Merged
merged 3 commits into from
Sep 20, 2024
Merged

ALCF Update #28

merged 3 commits into from
Sep 20, 2024

Conversation

davramov
Copy link
Contributor

Changed argparse to typer in scripts/check_globus_compute.py and check_globus_transfer.py. Also patched orchestration/globus/transfer.py to coerce transfer data into strings.

…k_globus_transfer.py. Also patched orchestration/globus/transfer.py to coerce transfer data into strings.
@davramov davramov self-assigned this Sep 20, 2024
@@ -115,7 +115,7 @@ def start_transfer(
relative_path = item.relative_to(source_path.parent)
tdata.add_item(str(item), os.path.join(dest_path, str(relative_path)))
else:
tdata.add_item(source_path, dest_path)
tdata.add_item(str(source_path), str(dest_path))
Copy link
Contributor

Choose a reason for hiding this comment

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

If the issue is that the variables are pathlin.Path instances, then can we also change the type hints for the variables in the function call?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh wait...

the typing is correct on the function definition, it's that we reinitizlize source_path.

dest_path probably comes in as a str and doesn't need to be coerced

…rce_path) since it is reinitialized into a Path object
…rce_path) since it is reinitialized into a Path object
@dylanmcreynolds dylanmcreynolds merged commit f11157e into als-computing:main Sep 20, 2024
1 check passed
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.

2 participants