v1.3.x series (current stable)#
v1.3.0 (4th November 2026)#
This release brings spatially varying particulate media to Eradiate: aerosol
and cloud fields can now vary per voxel, with particle properties interpolated
over particle size distribution parameters (new ParticleMSComponent)
or other state variables such as relative humidity (new
ParticleStateComponent). To support this, the aerosol data format is
generalized to the Prt family of particle radiative property formats, and a new
Ppr format describes particle profiles. In CKD mode, the sample count set by
Measure.spp is now distributed across spectral loop iterations
according to their contribution to the final result, and variances use the
unbiased estimator. The kernel is upgraded to v0.6.0 (based on Mitsuba v3.9.1),
which adds Python 3.14 support and drops Python 3.9 and macOS x64 support. The
gecko and komodo monochromatic absorption databases are updated to
version 2. Testing infrastructure and the development environment are also
substantially reworked.
Most renamed components, fields and functions remain available with a deprecation warning until v2.0.0. Deprecation warnings are now displayed by default. Changes marked with ⚠️ may require action:
Use Python 3.10 or later. On Intel Macs, stay on v1.2.x.
Download the updated absorption databases:
eradiate data install geckoand/oreradiate data install komodo.In CKD mode, expect different noise levels at a given
spp: per-g-point and per-bin sample counts are no longer equal.sppmust now be at leastspp_min(default: 2) per g-point, or aValueErroris raised. To restore the v1.2 behaviour, setspp_allocation="uniform"on the measure, orsample_allocation = "uniform"in the configuration file.Variances are now unbiased and NaN where fewer than 2 samples were taken. Regression thresholds based on variance may need adjustment.
Replace
ParticleLayerwithParticleOTComponent(the Python name is removed; the"particle_layer"dictionary type is still accepted), andHeterogeneousAtmosphere(particle_layers=...)withparticle_components=....Replace
aer_core_v2datasets and helpers with theirprt_core_v1counterparts, andload_aerosol_libradtran()withlibradtran_to_prt().AbstractHeterogeneousAtmosphere.eval_radprops()output now has(x_cell, y_cell, z_layer)dimensions; selectx_cell=0, y_cell=0(orsqueeze()) to recover 1D profiles.Replace
eradiate.test_toolsimports witheradiate.testing, and the--update-referencespytest flag with--force-regen.Code calling
mi_render()directly must unpack(bitmap, spp)pairs.Test suites that turn warnings into errors will now fail on Eradiate deprecation warnings: these are now
FutureWarnings.Spatially varying particulate media
New
ParticleStateComponentatmosphere component. It interpolates particle properties linearly over 1 or 2 state variables (e.g. relative humidity) supplied per voxel by aParticleProfile(PR623).New
ParticleMSComponentatmosphere component for particulate media parametrized byreffandveff, like clouds (PR605).New
GriddedParticlePhaseFunction, used by this component. It wraps theparticlephasekernel plugin and interpolates the phase matrix per voxel over the state variables (PR605).3D atmospheres can now clamp, repeat, or mirror samples that fall outside the grid extent. Set this with
SceneGeometry’swrap_mode(PR604).ArrayParticleDistributionnow accepts 3D arrays (one per horizontal cell), not just 1D (PR603).
Particle data formats and converters
The
aer_core_v2format is renamedprt_core_v1as part of a nomenclature generalization effort. Compatibility is kept (PR599).ParticlePropertiesaccepts Prt datasets with any state dimensions. This includes the newprt_ms_v1format, which extendsprt_core_v1withreff/veffdimensions, and the newprt_hum_v1format, which adds a relative humidity dimension (PR599, PR623).New
ppr_core_v1data format for spatially varying particle profiles, and itsppr_ms_v1extension for profiles described by particle size distribution parameters (PR599, PR623).New
libradtran_to_prt()converter, the single entry point for libRadtran optical property data. It accepts a path or a dataset, selectsreffandhumwith xarray semantics and returns aprt_core_v1,prt_ms_v1orprt_hum_v1dataset depending on the dimensions kept.load_aerosol_libradtran()andlibradtran_to_aer_core_v2()are deprecated in favour of it and will be removed in v2.0.0 (PR623).All Prt variants are built by the new
make_prt_v1(), withmake_prt_core_v1(),make_prt_ms_v1()andmake_prt_hum_v1()as thin wrappers (PR623).
Atmosphere component API
Abstract
ParticleComponentis introduced to factorize flags handling in particle-related subclasses (PR603).⚠️
ParticleLayeris renamedParticleOTComponent. Theparticle_layerfactory type ID remains accepted as an alias ofparticle_ot; theParticleLayerPython name is removed (PR603, PR623).HeterogeneousAtmosphere’sparticle_layersfield is renamedparticle_components. The old name is still accepted by the constructor and as a read-only attribute, with a deprecation warning; it will be removed in v2.0.0 (PR603, PR623).New
ParticleExtinctionComponentto define particles with an explicit extinction dataset and an arbitrary phase function.sigma_tandalbedocan be passed in any dimension order (PR603, PR623).⚠️
BlendPhaseFunction(blend_phase) is replaced byMultiPhaseFunction(multi_phase), without a compatibility alias. It blends any number of phase functions using per-component weight grids, not nested pairs. Weights can also be passed as a tuple of callables (PR587, PR623).HeterogeneousAtmospherecomponents now warn whenuse_rrt,ddis_threshold,force_majorantorextremum_resolutionare set on them: these fields are ignored for nested components and must be set on the parent (PR623).⚠️
AbstractHeterogeneousAtmosphere.eval_radprops()returns data with(x_cell, y_cell, z_layer)dimensions instead ofz_layeronly, with horizontal cell centre coordinates (PR600, c5e4b48).⚠️ The unused
eval_mfp()method is removed from all atmosphere classes (PR623).
Monte Carlo integration
⚠️ In CKD mode,
Measure.sppis now the sample count spent on each output value rather than on each spectral loop iteration: it is split across the g-points of each bin proportionally to quadrature weights and, with aBandSRF, across bins proportionally to the SRF weights applied by the post-processing pipeline, which makes per-bin results (e.g.radiance, as opposed toradiance_srf) noisier in low-weight bins. Every spectral loop iteration gets at leastMeasure.spp_minsamples (default: 2): in CKD mode,sppmust be at leastspp_minper g-point (per bin and g-point with aBandSRF), lower values raise aValueError. Settingspp_minto 1 allows lower sample counts, but may leave variances undefined (NaN, see below). Mono mode is unchanged. The previous behaviour is restored by settingMeasure.spp_allocationto"uniform", or globally withsample_allocation = "uniform"in the configuration file or theERADIATE_SAMPLE_ALLOCATIONenvironment variable. The sample counts actually rendered for each spectral loop iteration are stored inMeasure.mi_results: samplers other than"independent"round them up (seekernel.effective_spp()). The allocation policy is recorded in thesample_allocationattribute of results. See Sample allocation.The variance computed from second moments is clamped at zero, which removes negative round-off residuals for noiseless results.
⚠️ The variance computed from second moments uses the unbiased estimator (division by
spp - 1instead ofspp) and is NaN where fewer than 2 samples were taken; a warning is emitted when this happens. SRF-weighted variances (e.g.radiance_srf_var) including such an undefined per-bin variance are NaN, instead of silently dropping that bin.EOVolPathIntegratorexposes theuse_ddis,use_ddis_surface,use_pbsanduse_nleflags.use_vroomis true when all three of DDIS, PBS and NLE are enabled; setting it sets all three (PR623).Fixed the
extremum_sphericaltransform and parameters in spherical shell geometry (PR623).The piecewise integrator is rejected for atmosphere grids with horizontal resolution (PR623).
In spherical shell geometry, an
extremum_resolutionother than(n_r, 1, 1)raises aValueErrorwhen building the scene: the kernel only implements radial traversal (2247590).Fixed an
AttributeErrorraised whenextremum_resolutionis set with the default integrator. A warning is now emitted when a piecewise medium drops the extremum structure (PR623).
Kernel, Python support and dependencies
The kernel is upgraded to v0.6.0, based on Mitsuba v3.9.1 (PR621). This notably enables support for Python 3.14 (natively) and 3.15 (through the 3.12 stable ABI). We however recommend Python 3.10 to 3.14.
⚠️ Python 3.9 and macOS x64 support are dropped as a consequence of the kernel upgrade (PR621).
🖥️ Traversal logic of the Mitsuba scene is moved to the kernel code (PR593).
⚠️🖥️
mi_render()maps each context and sensor to a(bitmap, spp)pair instead of a bitmap, wheresppis the sample count actually rendered. A sample count override no longer persists in the sensor’s sampler after rendering.The Python version requirement is no longer capped, and package metadata lists supported Python versions (40cc376).
The Pint requirement is raised to v0.24 (4446233).
Molecular absorption databases
Results and performance
Results now include the SRF-weighted variance
<var>_srf_varalongside<var>_srfwhenever variance computation is enabled. This makes noise-aware comparisons (e.g.ZTest) possible on band-integrated quantities (PR595).Various fixes on data caching and inappropriate usage of Pint and xarray provide significant speedup on the spectral loop and post-processing pipeline (PR614, PR620).
New
magnitude_as()returns the magnitude of a value in target units without building an intermediate quantity for unitless input. Pint usage is aligned with best practices across the codebase (6b9017e).
Error handling and deprecation
⚠️
DeprecatedWarningnow subclassesFutureWarninginstead ofDeprecationWarning. Deprecation warnings are therefore displayed by default, including when deprecated arguments are passed through factories (e.g. dictionary-based scene specifications) (PR623).⚠️ Fixed exceptions raised with an incorrect type or an ill-formed message across the codebase. Notable changes that can have (unlikely) consequences for callers (PR615):
supported_mode()andunsupported_mode()raiseUnsetModeErrorif no mode is active.Converting a dict with no
typeentry through a factory raises aValueErrorinstead of aKeyError.In
AbstractHeterogeneousAtmosphere.eval_transmittance(), errors raised during extinction coefficient evaluation were confused with an invalid interaction type: this is no longer the case.Validators of
RTLSBSDFand the atmosphere/canopy size check inCanopyAtmosphereExperimentraiseValueErrorinstead of usingassert.Type-related errors now raise
TypeError(unhandled geometry types,SpectralIndex.convert()); value-related errors now raiseValueError(e.g. mismatching dimensions in variance computation, leaf cloud parameter set).
Unused exception classes
KernelVariantError,InterpolationError,MissingCoordinateError,ScalarCoordinateErrorandOutOfBoundsCoordinateErrorare removed (PR615).🖥️ New
renamed_kwargs()class decorator ineradiate.util.deprecationto deprecate renamed constructor arguments of attrs classes (PR623).🖥️ Deprecated components always show the deprecation notice in their docstrings, including in documentation built from development versions (PR623).
🖥️ Testing infrastructure
⚠️ The
eradiate.test_toolspackage is renamederadiate.testing(7780f21).Regression reference data management is now handled by pytest-regressions through the new
dataset_regressionfixture, and is decoupled from the statistical testing framework.RegressionTestsubclasses no longer manage data and only perform comparison and plotting (PR596).The
--update-referencesflag is replaced by pytest-regressions’--force-regenand--regen-all. Missing reference data remains an error unless one of these flags is passed. Regenerated references are now written to theeradiate-datasubmodule (overridable) instead of the artefact directory (PR596).RegressionTestcan now evaluate its testing criterion independently for each slice of a dimension (specified with adimparameter) and reports the worst one. This replaces per-wavelength loops found in some tests and is stricter than comparing flattened arrays (PR596).Regression test artefacts are no longer prefixed with a session timestamp; they are named after their reference dataset (PR596).
RegressionTestno longer raises when initialized with plotting enabled and no reference data (PR582).Test code no longer depends directly on Robot Framework. Report messages are routed through
ReportLogger, which falls back to standard logging when Robot is not installed. Robot Framework is no longer a docs dependency (PR582).Test report products (
output.xml,log.html,report.htmland PDF renders) are now written to thereports/directory.figure_to_html()is moved fromtest_tools.regressiontotest_tools.report(PR582).RAMI4ATM regression tests are refactored and references regenerated with a low variance (PR598).
Particle component tests are grouped in class suites (PR623).
The spectral loop benchmark now measures parameter evaluation only, excluding Mitsuba scene initialization, updates and renders (dd44bcd).
Pytest default verbosity level is increased to
-vv(PR580).Added
pytest-regressionsandcolorcetdependencies in the testing environment (PR596).
🖥️ Development environment and documentation
The
devenv is deprecated. Thedefaultenv is now used for local builds. Thedocsenv is used both locally and online to compile the documentation. Theprodenv is gone, replaced by the already existingpyxxxenvironments (PR580).Documentation now builds with Sphinx 9 and Python 3.11. The local docs build mocks Mitsuba and Dr.Jit like the Read The Docs build does (PR580).
Tutorials are moved to the
docs/tutorialssubdirectory (PR580).Tool configuration is moved to external files to unclutter
pyproject.toml(PR580).The codebase and tooling were adjusted to better comply with the Scientific Python Library Development Guide (PR583).
Hardened Ruff linter and formatter settings, and applied a pass over the whole codebase (PR617).
The particle components user guide includes a terminology glossary (amount, field, particle profile, particle properties, state dimension, state variable) (PR623).
Fixed the CLI reference page, which was generated without its command list with Typer 0.26 (8ac392e).
The data and tutorials submodules are updated: revised polarization tutorial and regenerated IPRT datasets (PR623).
Fixed multiple breakages after a development environment update (PR578).
The codebase is now REUSE-compliant.
🖥️ Internal refactoring
ZGridis replaced throughout the atmosphere stack by the newgrid.pyfacility (SpatialGrid,CartesianGrid,SphericalGrid) and agenerate_gridvolume()helper for building kernel volumes (PR600). Grid accessors use axis-first names aligned with dataset naming (x_edges,x_centers,n_x_cells, etc.), factories are defined onCartesianGridandSphericalGrid, and copies are resampled withwith_cell_counts()/with_cell_sizes()(PR623).SphericalGridrejects colatitudes outside [0°, 180°] (8abe426).RayleighPhaseFunctionnow builds its depolarization-factor volume withgenerate_gridvolume(), instead of hand-rolledDictParameter/SceneParametercode (PR587).Duplicate phase template methods are removed from
HeterogeneousAtmosphere(PR623).Compatibility shims are grouped in a dedicated module (PR618).
Various code import cleanup actions (PR619).
Various minor fixes
Fixed a bug where spheroidal particle datasets would raise an
IndexErrorupon a call toParticleProperties.eval_phase()in polarized mode (PR594).Fixed
SphericalShellGeometryplacing volume data incorrectly when config and kernel length units differ (224cb60).Fixed default
ArrayParticleDistributioncoordinates picking different grid nodes depending on the CPU architecture with step-function interpolation (ebedd7e).Fixed Skyfield data expiry warnings making tests fail; Skyfield logic is moved to a private module (7d14348).