• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xscen / 16626193669
90%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2025 03:08PM UTC
Jobs 7
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jul 2025 02:59PM UTC coverage: 88.025% (+0.002%) from 88.023%
16626193669

push

github

web-flow
Fixed spatial_mean always using spatialAverager's default dimension name (#620)

<!-- Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [ ] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #xyz
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [ ] (If applicable) Tests have been added.
- [x] This PR does not seem to break the templates.
- [ ] CHANGELOG.rst has been updated (with summary of main changes).
- [ ] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added.

### What kind of change does this PR introduce?

Fix:
[xscen.spatial_mean](https://github.com/Ouranosinc/xscen/blob/main/src/xscen/aggregate.py#L636)
now reuses the custom dimension name "geom_dim_name" provided via
"kwargs" to
[xesmf.spatialAverager](https://github.com/pangeo-data/xESMF/blob/master/xesmf/frontend.py#L1123),
defaulting back to "geom" when not specified.

This is needed because the current implementation of xscen.spatial_mean
always outputs a dataset with dimension "geom". As such, if someone
passes:
`kwargs = {"geom_dim_name": "region"}`
The output dataset will have both "geom" and "region" dimensions.

### Does this PR introduce a breaking change?
No

### Other information:

3 of 3 new or added lines in 1 file covered. (100.0%)

4043 of 4593 relevant lines covered (88.03%)

6.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.12 - 16626193669.1 30 Jul 2025 03:10PM UTC 18
85.26
GitHub Action Run
2 run-Python3.12-conda - 16626193669.2 30 Jul 2025 03:09PM UTC 17
87.92
GitHub Action Run
3 run-Python3.11-conda - 16626193669.3 30 Jul 2025 03:09PM UTC 17
87.92
GitHub Action Run
4 run-Python3.11 - 16626193669.4 30 Jul 2025 03:10PM UTC 18
85.26
GitHub Action Run
5 run-Python3.10-conda - 16626193669.5 30 Jul 2025 03:09PM UTC 17
87.52
GitHub Action Run
6 run-Python3.10 - 16626193669.6 30 Jul 2025 03:10PM UTC 18
84.87
GitHub Action Run
7 run-Python3.13-conda - 16626193669.7 30 Jul 2025 03:10PM UTC 17
87.92
GitHub Action Run
Source Files on build 16626193669
  • Tree
  • List 18
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 81b08083 on github
  • Prev Build on main (#16534508128)
  • Next Build on main (#16627558159)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc