Skip to content

Commit 03a658d

Browse files
committed
Merge branch 'main' into issue-template
2 parents 586498a + f2d0eb4 commit 03a658d

File tree

200 files changed

+20733
-6793
lines changed

Some content is hidden

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

200 files changed

+20733
-6793
lines changed

.binder/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies:
2323
- netcdf4
2424
- numba
2525
- numpy
26+
- packaging
2627
- pandas
2728
- pint
2829
- pip

.github/ISSUE_TEMPLATE/bugreport.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Bug Report
2+
description: File a bug report to help us improve
3+
labels: [bug, "needs triage"]
4+
body:
5+
- type: textarea
6+
id: what-happened
7+
attributes:
8+
label: What happened?
9+
description: |
10+
Thanks for reporting a bug! Please describe what you were trying to get done.
11+
Tell us what happened, what went wrong.
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
id: what-did-you-expect-to-happen
17+
attributes:
18+
label: What did you expect to happen?
19+
description: |
20+
Describe what you expected to happen.
21+
validations:
22+
required: false
23+
24+
- type: textarea
25+
id: sample-code
26+
attributes:
27+
label: Minimal Complete Verifiable Example
28+
description: |
29+
Minimal, self-contained copy-pastable example that generates the issue if possible. Please be concise with code posted. See guidelines below on how to provide a good bug report:
30+
31+
- [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve)
32+
- [Craft Minimal Bug Reports](http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
33+
34+
Bug reports that follow these guidelines are easier to diagnose, and so are often handled much more quickly.
35+
This will be automatically formatted into code, so no need for markdown backticks.
36+
render: Python
37+
38+
- type: textarea
39+
id: log-output
40+
attributes:
41+
label: Relevant log output
42+
description: Please copy and paste any relevant output. This will be automatically formatted into code, so no need for markdown backticks.
43+
render: Python
44+
45+
- type: textarea
46+
id: extra
47+
attributes:
48+
label: Anything else we need to know?
49+
description: |
50+
Please describe any other information you want to share.
51+
52+
- type: textarea
53+
id: show-versions
54+
attributes:
55+
label: Environment
56+
description: |
57+
Paste the output of `xr.show_versions()` between the `<details>` tags, leaving an empty line following the opening tag.
58+
value: |
59+
<details>
60+
61+
62+
63+
</details>
64+
validations:
65+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ contact_links:
66
Ask questions and discuss with other community members here.
77
If you have a question like "How do I concatenate a list of datasets?" then
88
please include a self-contained reproducible example if possible.
9+
- name: Raster analysis usage question
10+
url: https://github.com/corteva/rioxarray/discussions
11+
about: |
12+
If you are using the rioxarray extension (engine='rasterio'), or have questions about
13+
raster analysis such as geospatial formats, coordinate reprojection, etc.,
14+
please use the rioxarray discussion forum.

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/misc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Issue
2+
description: General Issue or discussion topic. For usage questions, please follow the "Usage question" link
3+
labels: ["needs triage"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Please describe your issue here.
9+
- type: textarea
10+
id: issue-description
11+
attributes:
12+
label: What is your issue?
13+
description: |
14+
Thank you for filing an issue! Please give us further information on how we can help you.
15+
placeholder: Please describe your issue.
16+
validations:
17+
required: true

.github/ISSUE_TEMPLATE/newfeature.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Feature Request
2+
description: Suggest an idea for xarray
3+
labels: [enhancement]
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Is your feature request related to a problem?
9+
description: |
10+
Please do a quick search of existing issues to make sure that this has not been asked before.
11+
Please provide a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
validations:
13+
required: true
14+
- type: textarea
15+
id: solution
16+
attributes:
17+
label: Describe the solution you'd like
18+
description: |
19+
A clear and concise description of what you want to happen.
20+
- type: textarea
21+
id: alternatives
22+
attributes:
23+
label: Describe alternatives you've considered
24+
description: |
25+
A clear and concise description of any alternative solutions or features you've considered.
26+
validations:
27+
required: false
28+
- type: textarea
29+
id: additional-context
30+
attributes:
31+
label: Additional context
32+
description: |
33+
Add any other context about the feature request here.
34+
validations:
35+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
- [ ] Closes #xxxx
44
- [ ] Tests added
5-
- [ ] Passes `pre-commit run --all-files`
65
- [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst`
76
- [ ] New functions/methods are listed in `api.rst`

.github/stale.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configuration for probot-stale - https://github.com/probot/stale
22

33
# Number of days of inactivity before an Issue or Pull Request becomes stale
4-
daysUntilStale: 700 # start with a large number and reduce shortly
4+
daysUntilStale: 600 # start with a large number and reduce shortly
55

66
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
77
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
@@ -14,10 +14,10 @@ exemptLabels:
1414
- "[Status] Maybe Later"
1515

1616
# Set to true to ignore issues in a project (defaults to false)
17-
exemptProjects: false
17+
exemptProjects: true
1818

1919
# Set to true to ignore issues in a milestone (defaults to false)
20-
exemptMilestones: false
20+
exemptMilestones: true
2121

2222
# Set to true to ignore issues with an assignee (defaults to false)
2323
exemptAssignees: true
@@ -31,6 +31,9 @@ markComment: |
3131
3232
If this issue remains relevant, please comment here or remove the `stale` label; otherwise it will be marked as closed automatically
3333
34+
closeComment: |
35+
The stalebot didn't hear anything for a while, so it closed this. Please reopen if this is still an issue.
36+
3437
# Comment to post when removing the stale label.
3538
# unmarkComment: >
3639
# Your comment here.
@@ -40,8 +43,7 @@ markComment: |
4043
# Your comment here.
4144

4245
# Limit the number of actions per hour, from 1-30. Default is 30
43-
limitPerRun: 1 # start with a small number
44-
46+
limitPerRun: 2 # start with a small number
4547

4648
# Limit to only `issues` or `pulls`
4749
# only: issues

.github/workflows/benchmarks.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Benchmark
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, labeled]
6+
workflow_dispatch:
7+
8+
jobs:
9+
benchmark:
10+
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
11+
name: Linux
12+
runs-on: ubuntu-20.04
13+
env:
14+
ASV_DIR: "./asv_bench"
15+
16+
steps:
17+
# We need the full repo to avoid this issue
18+
# https://github.com/actions/checkout/issues/23
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Miniconda
24+
uses: conda-incubator/setup-miniconda@v2
25+
with:
26+
# installer-url: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
27+
installer-url: https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
28+
29+
- name: Setup some dependencies
30+
shell: bash -l {0}
31+
run: |
32+
pip install asv
33+
sudo apt-get update -y
34+
35+
- name: Run benchmarks
36+
shell: bash -l {0}
37+
id: benchmark
38+
env:
39+
OPENBLAS_NUM_THREADS: 1
40+
MKL_NUM_THREADS: 1
41+
OMP_NUM_THREADS: 1
42+
ASV_FACTOR: 1.5
43+
ASV_SKIP_SLOW: 1
44+
run: |
45+
set -x
46+
# ID this runner
47+
asv machine --yes
48+
echo "Baseline: ${{ github.event.pull_request.base.sha }} (${{ github.event.pull_request.base.label }})"
49+
echo "Contender: ${GITHUB_SHA} (${{ github.event.pull_request.head.label }})"
50+
# Use mamba for env creation
51+
# export CONDA_EXE=$(which mamba)
52+
export CONDA_EXE=$(which conda)
53+
# Run benchmarks for current commit against base
54+
ASV_OPTIONS="--split --show-stderr --factor $ASV_FACTOR"
55+
asv continuous $ASV_OPTIONS ${{ github.event.pull_request.base.sha }} ${GITHUB_SHA} \
56+
| sed "/Traceback \|failed$\|PERFORMANCE DECREASED/ s/^/::error::/" \
57+
| tee benchmarks.log
58+
# Report and export results for subsequent steps
59+
if grep "Traceback \|failed\|PERFORMANCE DECREASED" benchmarks.log > /dev/null ; then
60+
exit 1
61+
fi
62+
working-directory: ${{ env.ASV_DIR }}
63+
64+
- name: Add instructions to artifact
65+
if: always()
66+
run: |
67+
cp benchmarks/README_CI.md benchmarks.log .asv/results/
68+
working-directory: ${{ env.ASV_DIR }}
69+
70+
- uses: actions/upload-artifact@v3
71+
if: always()
72+
with:
73+
name: asv-benchmark-results-${{ runner.os }}
74+
path: ${{ env.ASV_DIR }}/.asv/results

.github/workflows/cancel-duplicate-runs.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)