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

Ouranosinc / figanos / 22640588316
9%

Build:
DEFAULT BRANCH: main
Ran 03 Mar 2026 08:11PM UTC
Jobs 6
Files 7
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

03 Mar 2026 08:09PM UTC coverage: 9.11% (+0.9%) from 8.187%
22640588316

push

github

web-flow
Enregistrement des cmaps de l'IPCC dans matplotlib (#368)

<!-- 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
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [ ] (If applicable) Tests have been added.
- [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?

* Suppression de `create_cmap`, on remplace par:
+ `get_ipcc_cmap_name` : Retourne le nom de la colormap à utiliser selon
les variables, la divergence ou le nom directement (auquel cas c'est pas
mal un pass-through)
+ `create_ipcc_cmap` : Renvoie un object colormap pour le nom IPCC de la
colormap. Fonction "privée", pas utile pour les usagers normaux.
* `create_ipcc_cmap` est appelé pour toutes les colormaps connues (i.e.
fichiers txt dans le dossier) et les objets créés sont enregistrés
directement dans `matplotlib.colormaps` et donc sont accessibles via
leur nom.

### Does this PR introduce a breaking change?
Oui. `utils.create_cmap` n'est plus. Il n'est pas nécessaire de créer
les colormaps à chaque fois.

### Other information:
J'ai comparé le temps d'importation de `figanos.matplotlib`
- sur `main`: ~3.9s
- sur cette branche : 4 s

Donc il semble que l'ajout ait un impact, mais 0.1 / 4 me semblait
acceptable.

12 of 36 new or added lines in 2 files covered. (33.33%)

1 existing line in 1 file now uncovered.

173 of 1899 relevant lines covered (9.11%)

0.64 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
14.14
2.52% src/figanos/matplotlib/utils.py
20
3.66
0.11% src/figanos/matplotlib/plot.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
14.14
2.52% src/figanos/matplotlib/utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.10-pypi - 22640588316.1 03 Mar 2026 08:12PM UTC 7
9.11
GitHub Action Run
2 run-3.12-pypi - 22640588316.2 03 Mar 2026 08:12PM UTC 7
9.11
GitHub Action Run
3 run-{{ matrix.python-version }}-conda - 22640588316.3 03 Mar 2026 08:11PM UTC 7
9.11
GitHub Action Run
4 run-3.13-pypi - 22640588316.4 03 Mar 2026 08:12PM UTC 7
9.11
GitHub Action Run
5 run-3.14-pypi - 22640588316.5 03 Mar 2026 08:12PM UTC 7
9.11
GitHub Action Run
6 run-3.11-pypi - 22640588316.6 03 Mar 2026 08:12PM UTC 7
9.11
GitHub Action Run
Source Files on build 22640588316
  • Tree
  • List 7
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22640588316
  • 895c41be on github
  • Prev Build on main (#21524240617)
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