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

Ouranosinc / xscen / 11670141241
90%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2024 06:17PM UTC
Jobs 6
Files 19
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

04 Nov 2024 06:12PM UTC coverage: 82.804% (+1.4%) from 81.41%
11670141241

push

github

web-flow
Add tests to `aggregate.py` (#486)

<!-- 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:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #xyz
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [x] (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?

* Mainly, this adds tests to the lines in `aggregate.py` that had yet to
be tested.
* Bugfix: `climatological_op` now correctly handles `kwargs`.
* Bugfix: `climatological_op` with `linregress` now correctly handles
`min_periods`
* Removed obsolete code now that we pin `xarray >=2023.11`.
* Bugfix: `datablock_3d` did not use the same attributes for the rotated
pole when creating the fake dataset.

### Does this PR introduce a breaking change?
* `method=='interp_centroid'` in `spatial_mean` has been removed without
backwards compatibility or staged removal, since it could produce vastly
erroneous results.
* Not really breaking since the function was not public, but
`regrid._get_grid_mapping` was moved to `spatial.py` and made public.


### Other information:

59 of 63 new or added lines in 3 files covered. (93.65%)

3650 of 4408 relevant lines covered (82.8%)

4.86 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.8
-0.58% src/xscen/regrid.py
3
96.88
17.44% src/xscen/aggregate.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10-conda - 11670141241.1 04 Nov 2024 06:18PM UTC 19
82.69
GitHub Action Run
2 run-Python3.10 - 11670141241.2 04 Nov 2024 06:18PM UTC 19
79.26
GitHub Action Run
3 run-Python3.12 - 11670141241.3 04 Nov 2024 06:18PM UTC 19
79.26
GitHub Action Run
4 run-Python3.11-conda - 11670141241.4 04 Nov 2024 06:18PM UTC 19
82.69
GitHub Action Run
5 run-Python3.12-conda - 11670141241.5 04 Nov 2024 06:18PM UTC 19
82.69
GitHub Action Run
6 run-Python3.11 - 11670141241.6 04 Nov 2024 06:18PM UTC 19
79.26
GitHub Action Run
Source Files on build 11670141241
  • Tree
  • List 19
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c5a32610 on github
  • Prev Build on main (#11669723065)
  • Next Build on main (#11671994727)
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

© 2026 Coveralls, Inc