Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.2]

### Changed
- Added `_dir` to end of input, scratch, and work directories to match OPERA setup
- Upgraded to hyp3lib v4.

## [0.1.1]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- pip
- gdal>=3.0
- shapely
- hyp3lib
- hyp3lib>=4,<5
- boto3
- jinja2
# For packaging, and testing
Expand Down
2 changes: 1 addition & 1 deletion requirements-static.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruff==0.11.6
ruff==0.11.8
mypy==1.15.0
lxml-stubs
types-shapely
Expand Down
6 changes: 3 additions & 3 deletions src/hyp3_opera_rtc/etc/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e
# Make the PGE "opera" package discoverable because it is not installed
export PYTHONPATH=$PYTHONPATH:${PGE_DEST_DIR}

python -um hyp3_opera_rtc.prep_rtc "$@" --work-dir /home/rtc_user/scratch
conda run -n RTC /home/rtc_user/opera/scripts/pge_main.py -f /home/rtc_user/scratch/runconfig.yml
python -um hyp3_opera_rtc.upload_rtc "$@" --output-dir /home/rtc_user/scratch/output
python -um hyp3_opera_rtc.prep_rtc "$@" --work-dir /home/rtc_user
conda run -n RTC /home/rtc_user/opera/scripts/pge_main.py -f /home/rtc_user/runconfig.yml
python -um hyp3_opera_rtc.upload_rtc "$@" --output-dir /home/rtc_user/output_dir
6 changes: 3 additions & 3 deletions src/hyp3_opera_rtc/prep_rtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def prep_rtc(
work_dir: Working directory for processing
resolution: Resolution of the output RTC (m)
"""
scratch_dir = work_dir / 'scratch'
input_dir = work_dir / 'input'
output_dir = work_dir / 'output'
scratch_dir = work_dir / 'scratch_dir'
input_dir = work_dir / 'input_dir'
output_dir = work_dir / 'output_dir'
for d in [scratch_dir, input_dir, output_dir]:
d.mkdir(parents=True, exist_ok=True)

Expand Down