rice-solar-physics/ebtelplusplus

API reference for unit annotations on dataclasses (e.g. `EbtelResult`) do not render nicely

Ouverte

#125 ouverte le 6 sept. 2025

 (1 commentaire) (0 réaction) (0 personne assignée)Python (7 forks)auto 404
CIbug?docshelp wanted

Métriques du dépôt

Stars
 (13 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

The way dataclasses handle type/unit annotations must have changed in Python 3.12 because the API documentation no longer renders the unit annotations correctly, e.g. https://ebtelplusplus.readthedocs.io/en/latest/api/ebtelplusplus.EbtelResult.html#ebtelplusplus.EbtelResult.tr_corona_radiative_loss_ratio. Furthermore, the docs build on GitHub Actions is now failing because of a warning about an unfound reference for u.dimensionless_unscaled.

This should be addressed before a new release is cut.

Guide contributeur