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

Ouranosinc / xscen / 26841998442
90%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 07:14PM UTC
Jobs 11
Files 17
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

02 Jun 2026 07:08PM UTC coverage: 90.075% (+0.006%) from 90.069%
26841998442

push

github

web-flow
Rewrite attrs coercition (#743)

<!-- 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 Ouranosinc/data-requests#54
- [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?
Rewrite of `_coerce_attrs`. I tried to be smart here and not have to
list all the potential correct dtypes. Instead, I relied on numpy to
"cast" the attribute into an array and used the resulting dtype.

If "O" (object), then it's probably something funky, cast as string.
If not a scalar, format to a single string, comma-separated.

The last change was to fix a bug discovered while writing the test. At
least h5py can't write attributes that are arrays of strings. I made the
arbitrary decision not to try to support sequence attributes at all.

### Does this PR introduce a breaking change?
Sequence attributes are always formatted to a string.

Not sure how breaking this is.

### Other information:

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

4438 of 4927 relevant lines covered (90.08%)

9.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.12-pypi-ubuntu-latest - 26841998442.1 02 Jun 2026 07:19PM UTC 17
87.54
GitHub Action Run
2 run-Python3.11-conda-ubuntu-latest - 26841998442.2 02 Jun 2026 07:18PM UTC 17
89.85
GitHub Action Run
3 run-Python3.12-conda-ubuntu-latest - 26841998442.3 02 Jun 2026 07:18PM UTC 17
89.85
GitHub Action Run
4 run-Python3.10-pypi-ubuntu-latest - 26841998442.4 02 Jun 2026 07:20PM UTC 17
87.29
GitHub Action Run
5 run-Python3.14-conda-ubuntu-latest - 26841998442.5 02 Jun 2026 07:15PM UTC 17
89.85
GitHub Action Run
6 run-Python3.13-conda-ubuntu-latest - 26841998442.6 02 Jun 2026 07:19PM UTC 17
89.85
GitHub Action Run
7 run-Python3.11-pypi-ubuntu-latest - 26841998442.7 02 Jun 2026 07:20PM UTC 17
87.54
GitHub Action Run
8 run-Python3.14-pypi-ubuntu-latest - 26841998442.8 02 Jun 2026 07:14PM UTC 17
87.52
GitHub Action Run
9 run-Python3.13-pypi-ubuntu-latest - 26841998442.9 02 Jun 2026 07:17PM UTC 17
87.54
GitHub Action Run
10 run-Python3.10-conda-ubuntu-latest - 26841998442.10 02 Jun 2026 07:18PM UTC 17
89.53
GitHub Action Run
11 run-Python3.12-pypi-macos-latest - 26841998442.11 02 Jun 2026 07:15PM UTC 17
87.48
GitHub Action Run
Source Files on build 26841998442
  • Tree
  • List 17
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26841998442
  • fad6ff03 on github
  • Prev Build on main (#26519583411)
  • Next Build on main (#26903432915)
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