Skip to content

Commit 914f19c

Browse files
authored
Merge pull request #712 from dbekaert/dev
RAiDER v0.5.4
2 parents a9bf37c + f59152b commit 914f19c

File tree

92 files changed

+7336
-5274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+7336
-5274
lines changed

.circleci/config.yml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,37 @@ jobs:
1212
- checkout
1313

1414
- run:
15-
name: Install micromamba
15+
name: Install MiniForge
1616
shell: /bin/bash -l
1717
command: |
1818
apt update --yes && apt-get upgrade --yes
1919
apt install -y --no-install-recommends wget ca-certificates git
2020
2121
cd ${HOME}
22-
curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
23-
eval "$(${HOME}/bin/micromamba shell hook -s posix)"
22+
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
23+
bash Miniforge3.sh -b -p "${HOME}/conda"
24+
source "${HOME}/conda/etc/profile.d/conda.sh"
25+
source "${HOME}/conda/etc/profile.d/mamba.sh"
2426
2527
- run:
2628
name: Create RAiDER environment
27-
shell: /bin/bash -l
29+
no_output_timeout: 30m
30+
shell: /bin/bash -xl
2831
command: |
29-
eval "$(${HOME}/bin/micromamba shell hook -s posix)"
32+
source "${HOME}/conda/etc/profile.d/conda.sh"
33+
source "${HOME}/conda/etc/profile.d/mamba.sh"
3034
3135
PYTHON_VERSION="<< parameters.python-version >>"
3236
sed -i "/python>=/c\ - python=${PYTHON_VERSION}" environment.yml
33-
micromamba create -f environment.yml
37+
mamba env create -f environment.yml
3438
3539
- run:
3640
name: Install raider and check environment
37-
shell: /bin/bash -l
41+
shell: /bin/bash -xl
3842
command: |
39-
eval "$(${HOME}/bin/micromamba shell hook -s posix)"
40-
micromamba activate RAiDER
43+
source "${HOME}/conda/etc/profile.d/conda.sh"
44+
source "${HOME}/conda/etc/profile.d/mamba.sh"
45+
mamba activate RAiDER
4146
4247
python -m pip install --no-deps .
4348
@@ -50,31 +55,34 @@ jobs:
5055
5156
- run:
5257
name: Setup data stores
53-
shell: /bin/bash -l
58+
shell: /bin/bash -xl
5459
command: |
55-
eval "$(${HOME}/bin/micromamba shell hook -s posix)"
56-
micromamba activate RAiDER
60+
source "${HOME}/conda/etc/profile.d/conda.sh"
61+
source "${HOME}/conda/etc/profile.d/mamba.sh"
62+
mamba activate RAiDER
5763
5864
python -c 'from RAiDER.models.credentials import setup_from_env; setup_from_env()'
5965
6066
- run:
6167
name: Run unit tests
62-
shell: /bin/bash -l
68+
shell: /bin/bash -xl
6369
command: |
64-
eval "$(${HOME}/bin/micromamba shell hook -s posix)"
65-
micromamba activate RAiDER
70+
source "${HOME}/conda/etc/profile.d/conda.sh"
71+
source "${HOME}/conda/etc/profile.d/mamba.sh"
72+
mamba activate RAiDER
6673
6774
COV_OPTIONS=`python -c "import importlib;print(*(' --cov='+p for p in importlib.util.find_spec('RAiDER').submodule_search_locations))"`
6875
pytest -m "not long" test/ ${COV_OPTIONS} --cov-report=
6976
7077
- run:
7178
name: Report coverage
72-
shell: /bin/bash -l
79+
shell: /bin/bash -xl
7380
command: |
7481
PYTHON_VERSION="<< parameters.python-version >>"
7582
if [ "${PYTHON_VERSION}" == "3.12" ]; then
76-
eval "$(${HOME}/bin/micromamba shell hook -s posix)"
77-
micromamba activate RAiDER
83+
source "${HOME}/conda/etc/profile.d/conda.sh"
84+
source "${HOME}/conda/etc/profile.d/mamba.sh"
85+
mamba activate RAiDER
7886
7987
python -m pip install coveralls
8088
python .circleci/fix_coverage_paths.py .coverage ${PWD}/tools/RAiDER/

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ on:
1212

1313
jobs:
1414
call-version-info-workflow:
15-
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.11.2
15+
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.17.1
1616
with:
1717
python_version: '3.10'
1818

1919
call-docker-ghcr-workflow:
2020
needs: call-version-info-workflow
21-
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.11.2
21+
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.17.1
2222
with:
2323
version_tag: ${{ needs.call-version-info-workflow.outputs.version_tag }}
2424
release_branch: main

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ on:
1313

1414
jobs:
1515
call-changelog-check-workflow:
16-
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.11.2
16+
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.17.1

.github/workflows/labeled-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212

1313
jobs:
1414
call-labeled-pr-check-workflow:
15-
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.11.2
15+
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.17.1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
call-release-workflow:
10-
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.11.2
10+
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.17.1
1111
with:
1212
release_prefix: RAiDER
1313
develop_branch: dev

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
call-bump-version-workflow:
10-
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.11.2
10+
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.17.1
1111
with:
1212
user: dbekaert
1313
email: bekaertdavid@gmail.com

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
77
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [0.5.4]
10+
### Changed
11+
* [701](https://github.com/dbekaert/RAiDER/pull/701) - Fixed a few path typos and handle some edge cases, add unit tests, lint project
12+
* [672](https://github.com/dbekaert/RAiDER/pull/672) - Linted the project with `ruff`.
13+
* [683](https://github.com/dbekaert/RAiDER/pull/683) - Fixed a naive datetime and added default template to template generation argument
14+
* `prepFromGunw.check_weather_model_availability` now returns `False` for HRRR when outside the CONUS or AK coverage areas, rather than raising `ValueError`.
15+
As a result, HRRR jobs run via HyP3 for GUNWs outside HRRR coverage will exit successfully without making any changes to the GUNW.
16+
17+
### Fixed
18+
* [700](https://github.com/dbekaert/RAiDER/pull/700) - Fixed a few path typos and handle some edge cases
19+
* [679](https://github.com/dbekaert/RAiDER/pull/679) - Fixed a bug causing test_updateTrue to falsely pass.
20+
* [685](https://github.com/dbekaert/RAiDER/pull/679) - Fixed a global bbox bug in checkContainment
21+
* Pinned to `herbie-data<2025.2.1` to address failing HRRR AK tests introduced with the 2025.2.1 release on 2025-02-18.
22+
923
## [0.5.3]
1024
### Fixed
1125
* Updates dem-stitcher to 2.5.8 to ensure new (ARIA-managed) url for reading the Geoid EGM 2008. See this [issue](https://github.com/ACCESS-Cloud-Based-InSAR/dem-stitcher/issues/96).
26+
* [674](https://github.com/dbekaert/RAiDER/pull/674#issue-2412467565) - Update tests to get rid of extra files created when running tests.
1227

1328
## [0.5.2]
1429
### Changed

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,22 @@ git commit -a -m "Put here the synthetic commit message"
111111
git push my_user_name my_new_feature_branch
112112
```
113113

114+
### Formatting and linting with [Ruff](https://docs.astral.sh/ruff/) ###
115+
116+
Format your code to follow the style of the project with:
117+
```
118+
ruff format
119+
```
120+
and check for linting problems with:
121+
```
122+
ruff check
123+
```
124+
Please ensure that any linting problems in your changes are resolved before
125+
submitting a pull request.
126+
> [!TIP]
127+
> vscode users can [install the ruff extension](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff) to run the linter automatically in the
128+
editor.
129+
114130
### Issue a pull request from GitHub UI ###
115131
commit locally and push. To get a reasonable history, you may need to
116132

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ dependencies:
2222
- h5netcdf
2323
- h5py
2424
- hyp3lib>=3,<4
25-
- herbie-data
25+
- herbie-data<2025.2.1
2626
- isce3>=0.15.0
2727
- jsonschema==3.2.0 # this is for ASF DAAC ingest schema validation
2828
- lxml
2929
- matplotlib
3030
- netcdf4
31-
- numpy
31+
- numpy<2
3232
- pandas
3333
- progressbar
3434
- pydap>3.2.2

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,28 @@ multi_line_output = 5
6666
default_section = "THIRDPARTY"
6767

6868
[tool.setuptools_scm]
69+
70+
[tool.ruff]
71+
line-length = 120
72+
src = ["tools", "test"]
73+
74+
[tool.ruff.format]
75+
indent-style = "space"
76+
quote-style = "single"
77+
78+
[tool.ruff.lint]
79+
extend-select = [
80+
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
81+
"UP", # pyupgrade: https://docs.astral.sh/ruff/rules/#pyupgrade-up
82+
"D", # pydocstyle: https://docs.astral.sh/ruff/rules/#pydocstyle-d
83+
"ANN", # annotations: https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
84+
"PTH", # use-pathlib-pth: https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
85+
]
86+
ignore = ["ANN101", "D200", "D205", "D212"]
87+
88+
[tool.ruff.lint.pydocstyle]
89+
convention = "google"
90+
91+
[tool.ruff.lint.isort]
92+
case-sensitive = true
93+
lines-after-imports = 2

0 commit comments

Comments
 (0)