Skip to content

Commit

Permalink
Merge branch 'development' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 authored Jan 9, 2025
2 parents 6e19470 + 7605002 commit 2264106
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ updates:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: monthly
ignore:
- dependency-name: "sangonzal/repository-traffic-action"
versions: "v1"
2 changes: 1 addition & 1 deletion .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ jobs:
pytest icepyx/tests/integration --verbose --cov app
- name: "Upload coverage report"
uses: "codecov/codecov-action@v4.5.0"
uses: "codecov/codecov-action@v4.6.0"
with:
token: "${{ secrets.CODECOV_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
--ignore=icepyx/tests/integration
- name: "Upload coverage report"
uses: "codecov/codecov-action@v4.5.0"
uses: "codecov/codecov-action@v4.6.0"
with:
token: "${{ secrets.CODECOV_TOKEN }}"
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -26,14 +26,14 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.8.6
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.19
rev: v0.23
hooks:
- id: validate-pyproject

Expand Down
4 changes: 3 additions & 1 deletion icepyx/core/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ def _combine_nested_vars(is2ds, ds, grp_path, wanted_dict):
pass

ds = ds[grp_spec_vars].swap_dims({"delta_time": "photon_idx"})
# add the rest of the dimensions of length 1 from is2ds to ds
ds = ds.expand_dims(dim=[dim for dim in is2ds.dims if is2ds[dim].size == 1])
is2ds = is2ds.assign(ds)

return is2ds
Expand Down Expand Up @@ -812,7 +814,7 @@ def _build_single_file_dataset(self, file, groups_list):

# if there are any deeper nested variables,
# get those so they have actual coordinates and add them
# this may apply to (at a minimum): ATL08
# this may apply to (at a minimum): ATL06, ATL08
if any(grp_path in grp_path2 for grp_path2 in wanted_groups_list):
for grp_path2 in wanted_groups_list:
if grp_path in grp_path2:
Expand Down

0 comments on commit 2264106

Please sign in to comment.