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

adding derivatives folder to the upload #6

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

camilolaiton
Copy link
Collaborator

Hello @jtyoung84,

I have included the derivatives folder to the upload. Please, let me know if you want me to include something else. I noticed that in the tests, the upload to S3 it is not directly being checked for any of the files.

I can work on this on and add it for the next PR.

Copy link
Contributor

@jtyoung84 jtyoung84 left a comment

Choose a reason for hiding this comment

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

It looks like you'll need to add an upper bound to numpy in the pyproject.toml file:
'numpy<2.0',

We should create a ticket to improve the test coverage. I'm okay if we do that later.

f"Uploading {derivatives_path} to {s3_derivatives_dir}"
)
utils.sync_dir_to_s3(derivatives_path, s3_derivatives_dir)
logging.info(f"Removing: {derivatives_path}")
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want to remove the derivatives path here. You can probably just log that the upload finished if you want.

derivatives_path = Path(self.job_settings.input_source).joinpath(
"derivatives"
)
if self.job_settings.s3_location is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a quick check that the derivatives folder actually exists?

@camilolaiton camilolaiton merged commit 49c26f5 into main Oct 14, 2024
1 check failed
@camilolaiton camilolaiton deleted the feat-derivatives-folder branch October 14, 2024 22:14
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