Invariants¶
samudra.invariants checks ocean data against physics it must obey: masks nest with depth, water stays above
freezing, heat enters only through the surface, and conservative regridding preserves heat and salt. Use it on a
dataset you built, on a model's rollout, or on the output of a pipeline step. Ocean physics
explains why each invariant holds and gives reference values for the published stores.
The checks ship with samudra, so a project that builds its own emulator can add samudra as a test dependency and
run them on its own data. They take xarray or NumPy inputs and return plain records, with no training code involved.
Releases up to 0.2.1 on PyPI don't include them yet; until the next release, install from GitHub:
How a check reports¶
Every check returns a list of Violations. An empty list means the data passes. A violation names the invariant,
says what failed with the numbers needed to judge it, and, when it applies, gives one example location:
import xarray as xr
from samudra.invariants import geometry, masks
store = xr.open_zarr(
"https://nyu1.osn.mghpcc.org/m2lines-pubs/Samudra/v2026-09/om4_onedeg/OM4.zarr", chunks={}
)
violations = masks.flattened_store(store, time_index=0) + geometry.sphere_area(store.areacello.load())
for violation in violations:
print(violation)
masks.mask_matches_ocean_fraction: mask_4 disagrees with ocean_fraction > 0 in 2 cells at {'y': 161, 'x': 55}
masks.mask_matches_ocean_fraction: mask_8 disagrees with ocean_fraction > 0 in 1 cells at {'y': 168, 'x': 52}
masks.mask_matches_ocean_fraction: mask_13 disagrees with ocean_fraction > 0 in 1 cells at {'y': 171, 'x': 98}
masks.mask_matches_ocean_fraction: mask_14 disagrees with ocean_fraction > 0 in 1 cells at {'y': 174, 'x': 256}
masks.mask_matches_ocean_fraction: mask_15 disagrees with ocean_fraction > 0 in 1 cells at {'y': 175, 'x': 210}
masks.mask_matches_ocean_fraction: mask_16 disagrees with ocean_fraction > 0 in 1 cells at {'y': 167, 'x': 356}
geometry.sphere_area: total area 5.076655e+14 m2 differs from 4 pi R^2 = 5.100645e+14 m2 by 0.470%; implied radius 6356.0 km
Both are known deviations in v2026-09. Seven Arctic land cells have an ocean_fraction of up to 3 × 10⁻⁷ (#1030),
and the cell areas were computed with Earth's polar radius, 6357 km, instead of its mean radius, 6371 km (#972).
Returning records, rather than raising, lets you collect every failure from several checks before deciding what to do.
In a test, pass the list to require_no_violations, which raises InvariantViolated (an AssertionError) listing all
of them.
What there is to check¶
Single-dataset checks hold for any one correct dataset:
| Module | Checks |
|---|---|
masks |
Masks nest with depth; ocean_fraction lies in [0, 1] and doesn't grow with depth; fields are NaN exactly on land. flattened_store runs all of these on a store laid out like ours (thetao_0 … thetao_18, mask_0 …). |
bounds |
Temperature at or above the freezing point for its salinity and depth; values within a range; coastal cells not dragged towards a land fill value (coastal_dilution). |
geometry |
Cell areas tile the sphere; layers tile the water column; columns and total volume match the bathymetry. |
timeaxis |
Times strictly increase; OM4's 5-day axis with its 6-day step at each leap-year boundary; forcing and state average over the same windows, in any cftime calendar. |
budgets |
Heat-content tendency tracks the surface heat flux; total salt doesn't drift; area-mean zos is zero. |
Metamorphic checks compare two versions of the same ocean, such as one field at two resolutions, before and after a pipeline step, or two releases:
| Module | Checks |
|---|---|
conservation |
Area, volume, heat and salt integrals agree; variance doesn't grow and no new extremes appear when coarsening; zonal spectra agree at scales both grids resolve. Also builds the area and volume weights and heat and salt content the other checks use. |
coupling |
The state responds to its forcing at lag zero, not a step early or late; surface currents turn from the wind the way Ekman drift does. |
releases |
Two builds of a store agree everywhere, except in variables a documented change allows to differ. |
Most checks take the names of their dimensions (y, x, lev by default) and work on curvilinear grids. The ones
that need a regular lat-lon grid (geometry.rectilinear_cell_area and the zonal spectra) raise on any other grid.
Checking a model rollout¶
samudra eval writes its predictions to predictions.zarr, stacked by depth (so with a lev dimension). The static
fields that weight the integrals come from the store the model was trained on. This checks that a rollout conserves
total salt about as well as the ocean it emulates:
import numpy as np
import xarray as xr
from samudra.invariants import budgets, conservation, require_no_violations
truth = xr.open_zarr(
"https://nyu1.osn.mghpcc.org/m2lines-pubs/Samudra/v2026-09/om4_onedeg/OM4.zarr", chunks={}
)
pred = xr.open_zarr("path/to/predictions.zarr")
volume = conservation.volume_weights(truth.areacello, truth.ocean_fraction, truth.dz)
def total_salt(so):
return conservation.salt_content(so, volume, ["lev", "y", "x"]).values
truth_so = xr.concat([truth[f"so_{k}"] for k in range(truth.sizes["lev"])], dim=truth.lev)
reference = total_salt(truth_so.sel(time=pred.time))
drift = (np.nanmax(reference) - np.nanmin(reference)) / np.nanmean(reference)
require_no_violations(budgets.salt_drift(total_salt(pred.so), max_relative=2 * drift))
The bound comes from the truth over the same period. Total salt in the stores isn't constant: it swings by about 3 × 10⁻⁶ within a year as sea ice freezes and melts, and trends because bottom cells count their full thickness (#973). A fixed bound tighter than that fails on the truth too. Calibrating every tolerance on the truth first is a good habit with any of these checks.
Tolerances and known deviations¶
Each check takes tolerances, with defaults that suit the published stores. Budgets close only approximately in stored data (5-day means, nominal layer thicknesses, float32), so tighten or loosen them for your data, and say why in the call.
The v2026-09 stores fail a few checks for reasons we know: cell areas use the polar radius (#972), volume is about 10%
high (#973), and a handful of land cells have slightly nonzero ocean_fraction (#1030). To pin a known deviation in a
test without hiding new ones, mark it as an expected failure of this exception only:
@pytest.mark.xfail(reason="#972: areacello uses the polar radius", raises=InvariantViolated, strict=True)
def test_cells_tile_the_sphere():
require_no_violations(geometry.sphere_area(store.areacello.load(), rtol=1e-4))
With raises=InvariantViolated, a network error or a renamed variable still fails the test. With strict=True, the
test fails once the deviation is fixed, which reminds you to remove the marker.
This repository's own tests are examples: the pipeline's property tests in data/tests/test_*_properties.py and the
audits of the published stores in data/tests/test_om4_live.py. Contributing covers how we write
and run them.
API reference¶
samudra.invariants.core
¶
The violation record every invariant returns, and helpers shared by the checks.
Violation(invariant, message, where=dict())
dataclass
¶
One failure of one invariant.
Attributes:
| Name | Type | Description |
|---|---|---|
invariant |
str
|
The check's name, e.g. |
message |
str
|
What failed, with the numbers needed to judge it. |
where |
Mapping[str, Any]
|
Coordinates of an example location (e.g. |
InvariantViolated
¶
Bases: AssertionError
Raised by require_no_violations. An AssertionError, so tests treat it as an oracle failure.
require_no_violations(violations)
¶
Raise InvariantViolated listing every violation, if there are any.
Source code in src/samudra/invariants/core.py
first_location(flags)
¶
Index of the first True element of a boolean array, keyed by dimension name.
Source code in src/samudra/invariants/core.py
isfinite(field)
¶
constant_along(edges, axis)
¶
Whether 2-D cell edges repeat one value along axis, as a rectilinear grid's do.
The tolerance is 1e-6 of the smallest spacing across the other axis, so it
doesn't grow with the coordinate's magnitude (as np.allclose's does).
Source code in src/samudra/invariants/core.py
same_order(first, *others)
¶
others transposed to first's dimension order, so they can be compared position by position.
Raises:
| Type | Description |
|---|---|
ValueError
|
if any has different dimensions or sizes from |
Source code in src/samudra/invariants/core.py
relative_difference(a, b)
¶
weighted_sum(field, weights, dims)
¶
Sum of field * weights over dims, skipping cells where either is NaN.
NaN where no cell is valid, so a comparison of an all-NaN field fails instead of passing on 0 == 0.
Source code in src/samudra/invariants/core.py
weighted_mean(field, weights, dims)
¶
Mean of field weighted by weights over dims, over cells where both are defined.
Source code in src/samudra/invariants/core.py
samudra.invariants.masks
¶
Masks agree with each other, with the fields, and with the grid.
A store describes where the ocean is several times over: the boolean masks, the
NaN pattern of every field, ocean_fraction, and the bathymetry. These checks
make every pair of descriptions agree.
nest_with_depth(wet, depth_dim='lev')
¶
A cell that is ocean at level k+1 is ocean at level k.
Source code in src/samudra/invariants/masks.py
ocean_fraction_bounds(ocean_fraction, depth_dim='lev', atol=1e-06)
¶
ocean_fraction is in [0, 1], finite, and never increases with depth.
Source code in src/samudra/invariants/masks.py
nan_matches_mask(field, wet, name)
¶
field is finite exactly where wet is True, at every time step.
wet may have fewer dimensions than field (e.g. no time); it broadcasts.
Source code in src/samudra/invariants/masks.py
mask_matches_fraction(wet, ocean_fraction, name, atol=1e-09)
¶
A cell is masked as ocean exactly when some of it is ocean (ocean_fraction > atol).
Conservative regridding leaves round-off fractions (~1e-16) where a land
cell's great-circle edges graze a wet neighbour; atol treats those as land.
Source code in src/samudra/invariants/masks.py
flattened_levels(ds, base)
¶
Level indices present for a flattened variable family, e.g. thetao_0..thetao_18.
Source code in src/samudra/invariants/masks.py
flattened_store(ds, time_index=0, fraction_atol=1e-09)
¶
Every mask description in a flattened store agrees with every other.
Checks, per level k: mask_k against the NaN pattern of each {var}_k,
against ocean_fraction[k] > 0, and nesting of mask_k with depth. Also
mask_0 against the surface fields, and that areacello (the full cell
area, land included) is finite and positive everywhere.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ds
|
Dataset
|
A flattened store, such as a published OM4 release. |
required |
time_index
|
int | None
|
The time step whose fields are compared with the masks, or None to compare every step (expensive for large stores). |
0
|
fraction_atol
|
float
|
Fractions at or below this count as land when compared with the masks. |
1e-09
|
Source code in src/samudra/invariants/masks.py
samudra.invariants.bounds
¶
Physical bounds, aimed at the artifacts processing leaves behind.
A plain range check rarely fails on real model output. Processing artifacts
cluster at coasts: averaging a field with zero-filled land, or with a fill value,
drags coastal cells towards that value. coastal_dilution compares each coastal
cell with its wet neighbours, which catches that even when the result still lies
in the physical range.
freezing_point(salinity, depth_m=0.0)
¶
Freezing temperature of seawater in degrees C, linearized in salinity and depth.
Source code in src/samudra/invariants/bounds.py
above_freezing(thetao, so, depth_m=0.0, tolerance=0.1)
¶
Temperature is at or above the freezing point for its salinity and depth.
Source code in src/samudra/invariants/bounds.py
within(field, name, lower, upper)
¶
All finite values lie in [lower, upper].
Source code in src/samudra/invariants/bounds.py
finite_where_wet(field, wet, name)
¶
No NaN or infinity in the ocean. Fill values such as 1e20 count as out of range elsewhere.
Source code in src/samudra/invariants/bounds.py
wet_neighbours(field, wet, y_dim='y', x_dim='x')
¶
For each cell, the min and max of its wet 4-neighbours, and whether it borders land.
Longitude wraps; latitude doesn't.
Source code in src/samudra/invariants/bounds.py
coastal_dilution(field, wet, name, toward=0.0, max_fraction=0.5, y_dim='y', x_dim='x')
¶
Coastal cells aren't pulled towards a land value beyond their wet neighbours' range.
A coastal cell's value can lie outside its wet neighbours' range: estuaries
are fresher than the sea next to them. But if averaging with land drags it
towards toward (0 for zero-filled land), it ends up much closer to
toward than any neighbour. This flags coastal cells whose distance from
toward is below max_fraction times their nearest wet neighbour's.
Use with fields that are far from toward in the open ocean, such as
salinity (toward=0) or temperature in kelvin.
Source code in src/samudra/invariants/bounds.py
samudra.invariants.geometry
¶
Grid geometry: areas, thicknesses and volumes add up to what the sphere and the bathymetry allow.
sphere_area(area, radius=EARTH_RADIUS_M, rtol=0.001)
¶
A global grid's cell areas sum to the sphere's area, 4 pi R^2.
Source code in src/samudra/invariants/geometry.py
rectilinear_cell_area(lat_b, lon_b, radius=EARTH_RADIUS_M)
¶
Exact spherical area of each cell of a regular lat-lon grid, from its (y_b, x_b) vertices.
Widths wrap around the globe, so a cell from 359 to 0 degrees is 1 degree wide. A cell can therefore be at most 180 degrees wide.
Source code in src/samudra/invariants/geometry.py
areas_match_vertices(area, lat_b, lon_b, radius=EARTH_RADIUS_M, rtol=1e-06)
¶
Each cell's area equals the spherical area its vertices enclose (rectilinear grids only).
Source code in src/samudra/invariants/geometry.py
layer_thickness(dz, ilev, lev=None)
¶
Layers are positive, tile the column from the surface, and contain their centres.
dz[k] == ilev[k+1] - ilev[k], ilev[0] == 0, and ilev[k] < lev[k] < ilev[k+1].
Source code in src/samudra/invariants/geometry.py
column_within_bathymetry(dz, wet, deptho, depth_dim='lev', atol=1.0)
¶
A water column's thickness, summed over wet layers, doesn't exceed the sea-floor depth.
dz may vary horizontally (partial cells) or not (nominal layers). A
column deeper than the bathymetry means the bottom cells count water that
isn't there, which inflates ocean volume (#973).
Source code in src/samudra/invariants/geometry.py
ocean_volume(area, ocean_fraction, dz)
¶
Ocean volume by the store convention: sum of area x ocean_fraction x dz.
volume_matches_bathymetry(area, ocean_fraction, dz, deptho, rtol=0.01)
¶
The store's volume formula agrees with the volume under the bathymetry, sum(area x deptho).
Source code in src/samudra/invariants/geometry.py
samudra.invariants.timeaxis
¶
Time axes, calendars and averaging windows.
Averaging bugs cluster where windows meet calendar boundaries: the end of a year, a leap day, or a change of calendar (OM4 is Julian, CM4 is no-leap, observations are proleptic Gregorian). These checks work on cftime objects of any calendar.
as_cftime(values, calendar=None)
¶
Time values as a list of cftime datetimes, from cftime or numpy datetime64.
Source code in src/samudra/invariants/timeaxis.py
calendar_of(values)
¶
The calendar of a time axis; numpy datetime64 counts as proleptic Gregorian.
Source code in src/samudra/invariants/timeaxis.py
averaging_windows(time, time_bnds, step_days=OM4_STEP_DAYS, leap_day_gaps=False)
¶
Each stamp is its window's midpoint and the windows tile time with no gaps or overlaps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
The time coordinate. |
required | |
time_bnds
|
Shape (time, 2): each window's start and end. |
required | |
step_days
|
float | None
|
Every window's expected length, or None to allow any length. |
OM4_STEP_DAYS
|
leap_day_gaps
|
bool
|
Allow exactly one uncovered day, December 31, at the end of each leap year. OM4's axis re-anchors every year to January 3 with 73 five-day windows, which cover 365 days. |
False
|
Source code in src/samudra/invariants/timeaxis.py
om4_five_day_axis(time)
¶
The published OM4 axis: 73 five-day steps per year, each year starting on January 3, 12:00.
365 = 73 x 5, so in a leap year the step from the year's last stamp to the next January 3 is 6 days. Any other spacing is a bug. Partial first and last years are allowed.
Source code in src/samudra/invariants/timeaxis.py
windows_match(state_bnds, forcing_bnds, state_name='state', forcing_name='forcing')
¶
Forcing and state average over the same windows, in the same calendar.
A forcing averaged over a window shifted by one step from the state's is the alignment bug that leaves the data plausible and the emulator wrong.
Source code in src/samudra/invariants/timeaxis.py
window_mean_preserved(fine, fine_bnds, coarse, coarse_bnds, time_dim='time', rtol=1e-05, atol=1e-06)
¶
Each coarse window's mean equals the duration-weighted mean of the fine windows inside it.
Time averaging is linear, so averaging fine windows into coarse ones must reproduce the coarse values. Fine windows straddling a coarse boundary count in proportion to their overlap.
Source code in src/samudra/invariants/timeaxis.py
samudra.invariants.budgets
¶
Budgets: heat enters only at the surface, salt is conserved, and mean sea level is removed.
Each budget closes only approximately in the stores (5-day means, nominal layer thicknesses, float32), so the checks take tolerances. Comparing a budget's residual across resolutions is sharper than any absolute tolerance: every resolution comes from the same source, so a residual that changes with resolution comes from processing.
area_mean_sea_level(zos, ocean_area, dims=('y', 'x'), atol=0.01)
¶
Area-mean zos is about 0 m at each step (CMIP removes the global mean).
Source code in src/samudra/invariants/budgets.py
central_tendency(series, seconds)
¶
Central difference of a series of window means, per second; NaN at both ends.
The difference between means of windows i-1 and i+1 spans the middle of
window i, so it pairs with window i's mean flux. seconds are the window
centres, so a 6-day step across a leap-year boundary is divided correctly.
Source code in src/samudra/invariants/budgets.py
heat_budget(heat_content, surface_heat_flux, seconds, min_correlation=0.9, slope_range=(0.8, 1.2))
¶
The heat-content tendency tracks the area-integrated surface heat flux.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
heat_content
|
ndarray
|
Global (or closed-basin) heat content per step, in J. |
required |
surface_heat_flux
|
ndarray
|
Area-integrated net surface heat flux per step, in W, positive into the ocean. |
required |
seconds
|
ndarray
|
Centre of each window, in seconds from any origin. |
required |
min_correlation
|
float
|
Lowest acceptable correlation between the two series. |
0.9
|
slope_range
|
tuple[float, float]
|
Acceptable regression slope of tendency on flux. |
(0.8, 1.2)
|
Source code in src/samudra/invariants/budgets.py
salt_drift(salt, max_relative=1e-06)
¶
Total salt changes by at most max_relative over the series.
Source code in src/samudra/invariants/budgets.py
residuals_agree(residuals, name, atol)
¶
A budget's residual is the same at every resolution, to within atol.
Source code in src/samudra/invariants/budgets.py
samudra.invariants.conservation
¶
Metamorphic checks between two versions of one ocean: before and after a step, or two resolutions.
Conservative regridding and the gcm-filters smoothers are weighted averages with non-negative weights that preserve area integrals. So, between a field and its regridded or filtered version:
- linear integrals (area, volume, heat, salt) agree,
- variance doesn't grow (law of total variance),
- no new extremes appear,
- zonal power spectra agree at wavelengths both grids resolve.
The same relations hold between the published 1, 1/2 and 1/4 degree stores, which share one source.
area_weights(area, ocean_fraction)
¶
Ocean area of each cell: full cell area times the fraction that is ocean.
volume_weights(area, ocean_fraction, dz)
¶
Ocean volume of each cell, by the store convention area x ocean_fraction x dz.
heat_content(thetao, volume, dims)
¶
Heat content relative to 0 C, in J: rho_0 c_p sum(theta dV).
salt_content(so, volume, dims)
¶
Salt mass in kg (practical salinity as g/kg): rho_0 sum(S dV) / 1000.
integral_preserved(fine, fine_weights, coarse, coarse_weights, name, dims=('y', 'x'), rtol=0.001, atol=0.0)
¶
sum(fine * w_fine) == sum(coarse * w_coarse) over dims, for each remaining index.
rtol is relative to sum(|fine| * w_fine), not to the total, so a field
whose positive and negative parts cancel (a velocity) isn't judged on round-off.
Source code in src/samudra/invariants/conservation.py
mean_preserved(fine, fine_weights, coarse, coarse_weights, name, dims=('y', 'x'), rtol=0.001, atol=0.0)
¶
Weighted means agree over dims, for each remaining index.
rtol is relative to the weighted mean of |fine|, as in integral_preserved.
Source code in src/samudra/invariants/conservation.py
variance_not_increased(fine, fine_weights, coarse, coarse_weights, name, dims=('y', 'x'), rtol=1e-06)
¶
Averaging can't create variance: weighted variance after <= before (law of total variance).
Source code in src/samudra/invariants/conservation.py
no_new_extremes(fine, coarse, name, atol=0.0)
¶
The coarse range lies inside the fine range: weighted averages only move extremes inward.
Source code in src/samudra/invariants/conservation.py
band_zonal_spectrum(field, lat_b, band, x_dim='x', y_dim='y')
¶
Zonal power spectrum of the area-weighted mean over a latitude band.
Each row counts with the area it shares with band, from its edges
lat_b (ny + 1 values, or a (y_b, x_b) array of a rectilinear
grid). Grids whose rows don't nest therefore average exactly the same band.
Every row that overlaps the band must be fully wet. field must have only
the y_dim and x_dim dimensions. Returns power at zonal wavenumbers
0..nx//2 (cycles per circle).
A cell holds its whole row's mean, so a row only partly inside the band adds an error that grows with the field's meridional gradient. When comparing two grids, put the band on the coarse grid's edges, so only the finer grid's thinner rows straddle it.
Source code in src/samudra/invariants/conservation.py
zonal_spectra_agree(fine, fine_lat_b, coarse, coarse_lat_b, band, name, resolved_fraction=0.125, rtol=0.05, x_dim='x', y_dim='y')
¶
Zonal spectra of a fully wet latitude band agree at wavenumbers both grids resolve.
Block-averaging n fine columns into one multiplies wavenumber k's amplitude by
sinc(k / N) for N coarse columns, so at k <= resolved_fraction N the
coarse power must lie between that attenuation and the fine power, within
rtol. *_lat_b are each grid's row edges (see band_zonal_spectrum).
Source code in src/samudra/invariants/conservation.py
samudra.invariants.coupling
¶
The forcing is a physically sensible fit to the ocean state it drives.
These checks catch forcing that is misaligned in time, or rotated or signed differently from the state, which leaves every field plausible on its own.
lagged_correlations(forcing, response, max_lag)
¶
Correlation of forcing[t] with response[t + lag] for each lag in [-max_lag, max_lag].
Source code in src/samudra/invariants/coupling.py
response_peaks_at_lag_zero(forcing, response, name, max_lag=2)
¶
The response correlates best with the forcing of the same window, not the one before or after.
Pair a flux with the central-difference tendency of what it drives (see
budgets.central_tendency). A peak at lag +1 or -1 means the forcing is
shifted by one step relative to the state.
Source code in src/samudra/invariants/coupling.py
ekman_deflection(tauuo, tauvo, uo, vo, lat, ocean_area, min_abs_lat=15.0, dims=('y', 'x'))
¶
Surface currents turn right of the wind in the north and left in the south.
Coriolis deflects the Ekman surface current to the right of the wind stress in the northern hemisphere and to the left in the southern. Averaged over a hemisphere, the stress-weighted cross product (tau x u) . z is negative in the north and positive in the south. A sign error or a swapped component in vector rotation flips this.
Source code in src/samudra/invariants/coupling.py
stress_and_current_aligned(tauuo, tauvo, uo, vo, ocean_area, dims=('y', 'x'))
¶
Surface current has a positive component along the wind stress, on average.
Ekman drift is within 90 degrees of the wind, so the area mean of tau . u is positive. A rotation applied to one pair of vectors but not the other breaks this.
Source code in src/samudra/invariants/coupling.py
samudra.invariants.releases
¶
Two builds of the same data agree, except where a documented change says otherwise.
Use it to compare two releases, or to compare a store rebuilt with the current pipeline against the published one. A difference nobody documented is either an unrecorded code change or a regression.
stores_agree(reference, candidate, variables=None, rtol=1e-05, atol=1e-06, expected_changes=frozenset())
¶
Shared variables agree in shape, NaN pattern and value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference
|
Dataset
|
The trusted build, such as the published store. |
required |
candidate
|
Dataset
|
The build being checked, aligned to the same times. |
required |
variables
|
Variables to compare; defaults to every variable in both. |
None
|
|
rtol
|
float
|
Relative tolerance for values. |
1e-05
|
atol
|
float
|
Absolute tolerance for values. |
1e-06
|
expected_changes
|
frozenset[str]
|
Variables a documented change allows to differ. |
frozenset()
|