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

Ouranosinc / xscen / 11938738109
90%

Build:
DEFAULT BRANCH: main
Ran 20 Nov 2024 05:40PM 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

20 Nov 2024 05:35PM UTC coverage: 86.742% (+3.9%) from 82.804%
11938738109

push

github

web-flow
Tests for the IO module (#492)

<!-- 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.
- [x] CHANGELOG.rst has been updated (with summary of main changes).
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added.

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

* Mainly adds tests to the IO module, along with bugfixes:
  * Adds a missing library (`openpyxl`) to the requirements.
  * Improves the code in `estimate_chunks` to support n dimensions.
* Fixes a bug in `subset_maxsize` where the last year would be dropped.
* Fixes a bug in `clean_incomplete` where the `zmetadata` file would not
be removed.
  * Added more flexibility to `clean_incomplete`.
  * Fixed a bug in `_coerce_attrs` where encoding would get dropped.
* Fixed bugs in `save_to_zarr` with `mode=='a'`: encoding of existing
variables is now always dropped & the code now crashes if trying to both
append dimensions with new data and add a new variable to an existing
zarr.
* Fixed bugs in `save_to_zarr` where the code would crash when skipping
a variable if `bitround` was not None.
* Fixed a bug in `make_toc` where the French name for the sheet would
get dropped if given a Dataset instead of a DataArray.
* Better default argument for `column` in `save_to_table`. It stays
unchanged if given a Dataset with multiple variables, but is now `None`
otherwise.
* Fixed a bug in `save_to_table` where `engine_kwargs` would not be used
if saving an Excel with a single sheet.

- An option was added to `publish_release_notes` to only ... (continued)

117 of 126 new or added lines in 3 files covered. (92.86%)

3860 of 4450 relevant lines covered (86.74%)

5.1 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
86.41
13.49% src/xscen/testing.py
2
97.61
44.07% src/xscen/io.py
6
95.29
-1.22% src/xscen/utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10 - 11938738109.1 20 Nov 2024 05:42PM UTC 19
83.24
GitHub Action Run
2 run-Python3.10-conda - 11938738109.2 20 Nov 2024 05:42PM UTC 19
86.63
GitHub Action Run
3 run-Python3.11-conda - 11938738109.3 20 Nov 2024 05:42PM UTC 19
86.63
GitHub Action Run
4 run-Python3.11 - 11938738109.4 20 Nov 2024 05:42PM UTC 19
83.24
GitHub Action Run
5 run-Python3.12-conda - 11938738109.5 20 Nov 2024 05:42PM UTC 19
86.63
GitHub Action Run
6 run-Python3.12 - 11938738109.6 20 Nov 2024 05:42PM UTC 19
83.24
GitHub Action Run
Source Files on build 11938738109
  • Tree
  • List 19
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d38c83f6 on github
  • Prev Build on main (#11685109470)
  • Next Build on main (#12796915182)
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