Skip to content

Commit 09ea12c

Browse files
Add advanced tutorials (#56)
* Miscellaneous * Miscellaneous * Add markdown linter precommit * Add madforhooks precommit * add pyupgrade precommit * Add nbstripout precommit * Add nbQa precommit * YAML formatting * Add rst precommit checks * Add prettier precommit * Move rgb plot argument to plot_kwargs * Refactor code order * Fix pcolormesh cartopy issue * Improve test coverage plots * Add initial new code for bucket partitioning * Add code and test for bucket writers and routines * Add code and test for bucket writers and routines * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update bucket to_xarray utility for multindexing * Update readme * Add tests for bucket readers * Add tests for bucket readers * Finalize readers and filters * Intermediate partitioning class refactor * Add refactor bucket reader interface * Add TilePartitioning * Generalize add_labels, add_centroids and to_xarray methods * Add fixes for windows * Fix bucket tests * Debug windows CI * Fix windows buckets tests * Rename partitioning names argument to levels * Rename partitioning_order to order * Rename partitioning_flavor to flavor * Remove xbin and ybin attrs in XYPartitioning * Add partitioning query_vertices methods * Update encoding chunksizes and preferred_chunks when transposing * Fix bug in remap_numeric_array * Set quality variable as coordinate * Refactor plot_image * Add new test data * Refactor and improve visualization --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ed099c2 commit 09ea12c

File tree

155 files changed

+16678
-8195
lines changed

Some content is hidden

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

155 files changed

+16678
-8195
lines changed

.coveragerc

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
source =
33
gpm
44
omit =
5-
*dev*
65
*docs*
76
*tutorials*
8-
gpm/bucket/*
97
gpm/cli/*
108
gpm/encoding/*
119
gpm/etc/*
12-
gpm/retrieval/*
10+
gpm/retrievals/*
11+
gpm/visualization/animation.py
12+
gpm/utils/pyresample.py
1313
gpm/_version.py
1414

1515
[report]
+50-50
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1+
---
12
name: 🐞 Bug Report
23
description: File a bug/issue
34
title: "[BUG] <title>"
45
labels: [bug, triage]
56
assignees: ghiggi
67
body:
7-
- type: checkboxes
8-
attributes:
9-
label: Is there an existing issue for this?
10-
description: Please search to see if an issue already exists for the bug you encountered.
11-
options:
12-
- label: I have searched the existing issues
13-
required: true
14-
- type: textarea
15-
attributes:
16-
label: Current Behavior
17-
description: A concise description of what you're experiencing.
18-
validations:
19-
required: false
20-
- type: textarea
21-
attributes:
22-
label: Expected Behavior
23-
description: A concise description of what you expected to happen.
24-
validations:
25-
required: false
26-
- type: textarea
27-
attributes:
28-
label: Steps To Reproduce
29-
description: Steps to reproduce the behavior.
30-
placeholder: |
31-
1. In this environment...
32-
2. With this config...
33-
3. Run '...'
34-
4. See error...
35-
validations:
36-
required: false
37-
- type: textarea
38-
attributes:
39-
label: Environment
40-
description: |
41-
examples:
42-
- **OS**: Ubuntu 20.04
43-
- **Python**: 3.8.2
44-
value: |
8+
- type: checkboxes
9+
attributes:
10+
label: Is there an existing issue for this?
11+
description: Please search to see if an issue already exists for the bug you encountered.
12+
options:
13+
- label: I have searched the existing issues
14+
required: true
15+
- type: textarea
16+
attributes:
17+
label: Current Behavior
18+
description: A concise description of what you're experiencing.
19+
validations:
20+
required: false
21+
- type: textarea
22+
attributes:
23+
label: Expected Behavior
24+
description: A concise description of what you expected to happen.
25+
validations:
26+
required: false
27+
- type: textarea
28+
attributes:
29+
label: Steps To Reproduce
30+
description: Steps to reproduce the behavior.
31+
placeholder: |
32+
1. In this environment...
33+
2. With this config...
34+
3. Run '...'
35+
4. See error...
36+
validations:
37+
required: false
38+
- type: textarea
39+
attributes:
40+
label: Environment
41+
description: |
42+
examples:
43+
- **OS**: Ubuntu 20.04
44+
- **Python**: 3.8.2
45+
value: |
4546
- OS:
4647
- python:
47-
render: markdown
48-
validations:
49-
required: false
50-
- type: textarea
51-
attributes:
52-
label: Anything else?
53-
description: |
54-
Links? References? Anything that will give us more context about the issue you are encountering!
55-
56-
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
57-
validations:
58-
required: false
48+
render: markdown
49+
validations:
50+
required: false
51+
- type: textarea
52+
attributes:
53+
label: Anything else?
54+
description: |
55+
Links? References? Anything that will give us more context about the issue you are encountering!
56+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
57+
validations:
58+
required: false

.github/ISSUE_TEMPLATE/config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
---
12
blank_issues_enabled: false
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
---
12
# To get started with Dependabot version updates, you'll need to specify which
23
# package ecosystems to update and where the package manifests are located.
34
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5-
5+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yaml-file
66
version: 2
77
updates:
8-
- package-ecosystem: "github-actions" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: github-actions # See documentation for possible values
9+
directory: / # Location of package manifests
1010
schedule:
11-
interval: "monthly"
11+
interval: monthly
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
1-
name: Lint
2-
on: [push, pull_request, workflow_dispatch]
3-
4-
jobs:
5-
lint:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v4
9-
10-
- uses: actions/setup-python@v5
11-
with:
12-
python-version: "3.8"
13-
14-
- name: Ruff
15-
if: success() || failure()
16-
uses: pre-commit/[email protected]
17-
with:
18-
extra_args: ruff --all-files
19-
20-
- name: Black
21-
if: success() || failure()
22-
uses: pre-commit/[email protected]
23-
with:
24-
extra_args: black --all-files
25-
26-
- name: blackdoc
27-
if: success() || failure()
28-
uses: pre-commit/[email protected]
29-
with:
30-
extra_args: blackdoc --all-files
31-
32-
- name: codespell
33-
if: success() || failure()
34-
uses: pre-commit/[email protected]
35-
with:
36-
extra_args: codespell --all-files
1+
---
2+
name: Lint
3+
on: [push, pull_request, workflow_dispatch]
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-python@v5
10+
with:
11+
python-version: "3.8"
12+
- name: Ruff
13+
if: success() || failure()
14+
uses: pre-commit/[email protected]
15+
with:
16+
extra_args: ruff --all-files
17+
- name: Black
18+
if: success() || failure()
19+
uses: pre-commit/[email protected]
20+
with:
21+
extra_args: black --all-files
22+
- name: blackdoc
23+
if: success() || failure()
24+
uses: pre-commit/[email protected]
25+
with:
26+
extra_args: blackdoc --all-files
27+
- name: codespell
28+
if: success() || failure()
29+
uses: pre-commit/[email protected]
30+
with:
31+
extra_args: codespell --all-files
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,48 @@
1-
name: Package Release to PyPI
2-
on:
3-
push:
4-
tags:
5-
- "v*"
6-
7-
jobs:
8-
build-n-publish:
9-
name: Build and publish to PyPI
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
14-
steps:
15-
- name: Checkout source
16-
uses: actions/checkout@v4
17-
18-
- name: Set up Python
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: "3.x"
22-
23-
- name: Install pypa/build
24-
run: >-
25-
python -m
26-
pip install build
27-
28-
- name: Build a binary wheel
29-
run: >-
30-
python -m build
31-
32-
- name: Publish distribution to PyPI
33-
uses: pypa/gh-action-pypi-publish@release/v1
34-
with:
35-
user: __token__
36-
password: ${{ secrets.PYPI_API_TOKEN }}
37-
38-
- name: Get Asset name
39-
if: success() || failure()
40-
run: |
41-
export PKG=$(ls dist/ | grep tar)
42-
set -- $PKG
43-
echo "asset_name=$1" >> $GITHUB_ENV
44-
45-
- name: Create GitHub Release
46-
if: success() || failure()
47-
id: create_release
48-
uses: softprops/action-gh-release@v2
49-
with:
50-
name: ${{ github.ref }}
51-
tag_name: ${{ github.ref }}
52-
files: |
53-
dist/${{ env.asset_name }}
54-
draft: false
55-
prerelease: false
56-
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
1+
---
2+
name: Package Release to PyPI
3+
on:
4+
push:
5+
tags: [v*]
6+
jobs:
7+
build-n-publish:
8+
name: Build and publish to PyPI
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
- name: Install pypa/build
20+
run: >-
21+
python -m
22+
pip install build
23+
- name: Build a binary wheel
24+
run: >-
25+
python -m build
26+
- name: Publish distribution to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_API_TOKEN }}
31+
- name: Get Asset name
32+
if: success() || failure()
33+
run: |
34+
export PKG=$(ls dist/ | grep tar)
35+
set -- $PKG
36+
echo "asset_name=$1" >> $GITHUB_ENV
37+
- name: Create GitHub Release
38+
if: success() || failure()
39+
id: create_release
40+
uses: softprops/action-gh-release@v2
41+
with:
42+
name: ${{ github.ref }}
43+
tag_name: ${{ github.ref }}
44+
files: |
45+
dist/${{ env.asset_name }}
46+
draft: false
47+
prerelease: false
48+
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token

0 commit comments

Comments
 (0)