Skip to content

Conversation

@abradley60
Copy link
Collaborator

  • Add error handling to the scripts/run_aws_pipeline.sh - process will now exit on failure rather than progress to the next step
  • Begin reorganising the aws pipeline code
  • Build out .h5 and stac handling utility classes
  • POC for creating stac metadata with pystac
  • pystac dependancy

Copy link
Collaborator

@caitlinadams caitlinadams left a comment

Choose a reason for hiding this comment

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

Looks good to me -- I have suggested a few minor improvements/formatting changes.


```bash
docker build -t sar-pipeline -f Docker/Dockerfile .
docker build -t sar-pipeline:0.2 -f Docker/Dockerfile .
Copy link
Collaborator

Choose a reason for hiding this comment

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

The Dockerfile itself has version 0.1 in the file. Does the Dockerfile need to be updated, or are these unconnected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In my testing I was building an image with a new tag (0.2) and was keeping my notes for running. I'll keep consistent at 0.1 and update my docs to be helpful and not just me jotting things

Development in the container
```bash
docker run --env-file env.secret -it --entrypoint /bin/bash -v $(pwd):/home/rtc_user/sar-pipeline -v $(pwd)/scripts:/home/rtc_user/scripts -v /data/working:/home/rtc_user/working sar-pipeline
docker run --env-file env.secret -it --entrypoint /bin/bash -v $(pwd):/home/rtc_user/sar-pipeline -v $(pwd)/scripts:/home/rtc_user/scripts -v /data/working:/home/rtc_user/working sar-pipeline:0.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you have documentation somewhere (or a template file) for what needs to be in env.secret? Can you please add some instructions on what's required for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will add to docs

# - scratch : scratch folder for processing

if make_folders:
logger.info(f'Making output folders if not existing')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since these are now coming in as click paths, you can use Path.mkdir to create them: https://docs.python.org/3/library/pathlib.html#pathlib.Path.mkdir

return json.load(file)

def update_value(self, key_path: str, value):
def update_value(self, key_path: str, value, separator='.'):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please update to have numpy doc strings consistent with rest of repo.

ref[keys[-1]] = value

def get_value(self, key_path: str):
def get_value(self, key_path: str, separator='.'):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please update to have numpy doc strings consistent with rest of repo.

@abradley60
Copy link
Collaborator Author

@caitlinadams changes have been incorporated if you want to have a suss

Copy link
Collaborator

@caitlinadams caitlinadams left a comment

Choose a reason for hiding this comment

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

Had a quick look -- all looking good! Thanks for making the changes. I'll merge now.

@caitlinadams caitlinadams merged commit d870fcd into main Mar 11, 2025
1 check passed
@caitlinadams caitlinadams deleted the aws-iw-pipeline-uplift branch March 11, 2025 05:49
abradley60 pushed a commit that referenced this pull request Apr 10, 2025
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