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 gecko and/or eradiate 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. spp must now be at least spp_min (default: 2) per g-point, or a ValueError is raised. To restore the v1.2 behaviour, set spp_allocation="uniform" on the measure, or sample_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 ParticleLayer with ParticleOTComponent (the Python name is removed; the "particle_layer" dictionary type is still accepted), and HeterogeneousAtmosphere(particle_layers=...) with particle_components=....

  • Replace aer_core_v2 datasets and helpers with their prt_core_v1 counterparts, and load_aerosol_libradtran() with libradtran_to_prt().

  • AbstractHeterogeneousAtmosphere.eval_radprops() output now has (x_cell, y_cell, z_layer) dimensions; select x_cell=0, y_cell=0 (or squeeze()) to recover 1D profiles.

  • Replace eradiate.test_tools imports with eradiate.testing, and the --update-references pytest 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 ParticleStateComponent atmosphere component. It interpolates particle properties linearly over 1 or 2 state variables (e.g. relative humidity) supplied per voxel by a ParticleProfile (PR623).

    • New ParticleMSComponent atmosphere component for particulate media parametrized by reff and veff, like clouds (PR605).

    • New GriddedParticlePhaseFunction, used by this component. It wraps the particlephase kernel 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’s wrap_mode (PR604).

    • ArrayParticleDistribution now accepts 3D arrays (one per horizontal cell), not just 1D (PR603).

  • Particle data formats and converters

    • The aer_core_v2 format is renamed prt_core_v1 as part of a nomenclature generalization effort. Compatibility is kept (PR599).

    • ParticleProperties accepts Prt datasets with any state dimensions. This includes the new prt_ms_v1 format, which extends prt_core_v1 with reff/veff dimensions, and the new prt_hum_v1 format, which adds a relative humidity dimension (PR599, PR623).

    • New ppr_core_v1 data format for spatially varying particle profiles, and its ppr_ms_v1 extension 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, selects reff and hum with xarray semantics and returns a prt_core_v1, prt_ms_v1 or prt_hum_v1 dataset depending on the dimensions kept. load_aerosol_libradtran() and libradtran_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(), with make_prt_core_v1(), make_prt_ms_v1() and make_prt_hum_v1() as thin wrappers (PR623).

  • Atmosphere component API

    • Abstract ParticleComponent is introduced to factorize flags handling in particle-related subclasses (PR603).

    • ⚠️ ParticleLayer is renamed ParticleOTComponent. The particle_layer factory type ID remains accepted as an alias of particle_ot; the ParticleLayer Python name is removed (PR603, PR623).

    • HeterogeneousAtmosphere’s particle_layers field is renamed particle_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 ParticleExtinctionComponent to define particles with an explicit extinction dataset and an arbitrary phase function. sigma_t and albedo can be passed in any dimension order (PR603, PR623).

    • ⚠️ BlendPhaseFunction (blend_phase) is replaced by MultiPhaseFunction (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).

    • HeterogeneousAtmosphere components now warn when use_rrt, ddis_threshold, force_majorant or extremum_resolution are 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 of z_layer only, 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.spp is 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 a BandSRF, across bins proportionally to the SRF weights applied by the post-processing pipeline, which makes per-bin results (e.g. radiance, as opposed to radiance_srf) noisier in low-weight bins. Every spectral loop iteration gets at least Measure.spp_min samples (default: 2): in CKD mode, spp must be at least spp_min per g-point (per bin and g-point with a BandSRF), lower values raise a ValueError. Setting spp_min to 1 allows lower sample counts, but may leave variances undefined (NaN, see below). Mono mode is unchanged. The previous behaviour is restored by setting Measure.spp_allocation to "uniform", or globally with sample_allocation = "uniform" in the configuration file or the ERADIATE_SAMPLE_ALLOCATION environment variable. The sample counts actually rendered for each spectral loop iteration are stored in Measure.mi_results: samplers other than "independent" round them up (see kernel.effective_spp()). The allocation policy is recorded in the sample_allocation attribute 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 - 1 instead of spp) 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.

    • EOVolPathIntegrator exposes the use_ddis, use_ddis_surface, use_pbs and use_nle flags. use_vroom is true when all three of DDIS, PBS and NLE are enabled; setting it sets all three (PR623).

    • Fixed the extremum_spherical transform 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_resolution other than (n_r, 1, 1) raises a ValueError when building the scene: the kernel only implements radial traversal (2247590).

    • Fixed an AttributeError raised when extremum_resolution is 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, where spp is 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

    • ⚠️ The gecko and komodo monochromatic absorption databases are updated to version 2 (c52887f).

    • The AxsDB requirement is raised to v0.2 (5f10b83).

  • Results and performance

    • Results now include the SRF-weighted variance <var>_srf_var alongside <var>_srf whenever 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

    • ⚠️ DeprecatedWarning now subclasses FutureWarning instead of DeprecationWarning. 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() and unsupported_mode() raise UnsetModeError if no mode is active.

      • Converting a dict with no type entry through a factory raises a ValueError instead of a KeyError.

      • 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 RTLSBSDF and the atmosphere/canopy size check in CanopyAtmosphereExperiment raise ValueError instead of using assert.

      • Type-related errors now raise TypeError (unhandled geometry types, SpectralIndex.convert()); value-related errors now raise ValueError (e.g. mismatching dimensions in variance computation, leaf cloud parameter set).

    • Unused exception classes KernelVariantError, InterpolationError, MissingCoordinateError, ScalarCoordinateError and OutOfBoundsCoordinateError are removed (PR615).

    • 🖥️ New renamed_kwargs() class decorator in eradiate.util.deprecation to 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_tools package is renamed eradiate.testing (7780f21).

    • Regression reference data management is now handled by pytest-regressions through the new dataset_regression fixture, and is decoupled from the statistical testing framework. RegressionTest subclasses no longer manage data and only perform comparison and plotting (PR596).

    • The --update-references flag is replaced by pytest-regressions’ --force-regen and --regen-all. Missing reference data remains an error unless one of these flags is passed. Regenerated references are now written to the eradiate-data submodule (overridable) instead of the artefact directory (PR596).

    • RegressionTest can now evaluate its testing criterion independently for each slice of a dimension (specified with a dim parameter) 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).

    • RegressionTest no 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.html and PDF renders) are now written to the reports/ directory. figure_to_html() is moved from test_tools.regression to test_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-regressions and colorcet dependencies in the testing environment (PR596).

  • 🖥️ Development environment and documentation

    • The dev env is deprecated. The default env is now used for local builds. The docs env is used both locally and online to compile the documentation. The prod env is gone, replaced by the already existing pyxxx environments (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/tutorials subdirectory (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

    • ZGrid is replaced throughout the atmosphere stack by the new grid.py facility (SpatialGrid, CartesianGrid, SphericalGrid) and a generate_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 on CartesianGrid and SphericalGrid, and copies are resampled with with_cell_counts()/with_cell_sizes() (PR623). SphericalGrid rejects colatitudes outside [0°, 180°] (8abe426).

    • RayleighPhaseFunction now builds its depolarization-factor volume with generate_gridvolume(), instead of hand-rolled DictParameter/ SceneParameter code (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 IndexError upon a call to ParticleProperties.eval_phase() in polarized mode (PR594).

    • Fixed SphericalShellGeometry placing volume data incorrectly when config and kernel length units differ (224cb60).

    • Fixed default ArrayParticleDistribution coordinates 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).